StarburstHost Posted September 27, 2020 Share Posted September 27, 2020 I apologize if this has been asked/answered before. I looked over the docs, and see using hook where I can add/remove menu items. But what I'm trying to do is actually just rename Store dropdown to Services. If anyone can point me in the right direction I would appreciate it. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted September 28, 2020 Share Posted September 28, 2020 Read https://docs.whmcs.com/Client_Area_Navigation_Menus_Cheatsheet 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted September 28, 2020 Share Posted September 28, 2020 for a default menu, you've got two main options... 1, use a hook as you suggest... <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Store'))) { $primaryNavbar->getChild('Store')->setLabel(Lang::trans('navservices')); } }); .. this will change "Store" to "Services" in the user's language... 2. use Language Overrides to change the language string for each language you use in WHMCS. $_LANG['navStore'] = "Services"; 0 Quote Link to comment Share on other sites More sharing options...
StarburstHost Posted September 28, 2020 Author Share Posted September 28, 2020 Thanks @brian! Used the 2nd method, and it was quick & simple and got done what I needed. 🙂 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.