wayne10879 Posted August 25, 2021 Share Posted August 25, 2021 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? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted August 27, 2021 Share Posted August 27, 2021 (edited) If More exists on your menu, it should work. But I cannot recall a More menu option o n WHMCS. if (!is_null($primaryNavbar->getChild('More'))) { Check here https://developers.whmcs.com/themes/navigation/ Edited August 27, 2021 by pRieStaKos 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.