Jump to content

Modifing More Menu


wayne10879

Recommended Posts

So I am trying to modify the more menu on our WHMCS site. New install. I can get all the other menus to do what I would like using a hook.php file. This is what I have in my hook.php for More Menu.  

if (!is_null($navItem = $primaryNavbar->getChild('More'))){
 
    $navItem->removeChild('Open Ticket');
    $navItem->addChild('Contact US')->setUri('https://my.example.com/contact.php')->;
}

No matter what I do, Open Ticket is still there and Contact Us is not. I have also tried 

if (!is_null($primaryNavbar->getChild('More'))){
    $primaryNavbar->removeChild('More');

}

Just to remove the whole menu Item itself but that does not work and usually breaks all the rest of the hooks that work just fine. Any recommendations?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated