hostxls Posted July 27, 2016 Share Posted July 27, 2016 Hello, I want to change the directions of the menu's in the nav of the client area. For instant, if I want to change the directions of the Home in the client area, where do I do that? I have read some of the documentation but it was hard for me to understand. Is there a easier way to guide me to the correct file where I can make the changes. https://hostxls.com/clients/ Thank you in advance. Vincent 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 28, 2016 WHMCS Support Manager Share Posted July 28, 2016 Hi, To remove the nav bar entirely, you'd edit the /templates/*your active template*/header.tpl file. To customise the content of the nav bar in the new Six template, create a php file and upload it to the /includes/hooks directory. The necessary code to use is provided in the following documentation: http://docs.whmcs.com/Client_Area_Navigation_Menus_Cheatsheet http://docs.whmcs.com/Editing_Client_Area_Menus For example to change where the "Home" link points you'd use the following code: <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $navItem = $primaryNavbar->getChild('Home'); if (is_null($navItem)) { return; } $navItem->setUri('https://www.example.com/homepage.php'); }); 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted July 28, 2016 Author Share Posted July 28, 2016 Thank you for replying. What I still don't understand and that is because I never work with it or heard the name "Hooks", i'm confused. Later I will read about what hooks are but in the meantime, do I create a file called hooks or do I name the new file that I have created "hooks.php" and placed it the include file. Sorry for asking, I'm in a learning mode and it's not that easy. - - - Updated - - - Thank you for replying. What I still don't understand and that is because I never work with it or heard the name "Hooks", i'm confused. Later I will read about what hooks are but in the meantime, do I create a file (map) called hooks or do I name the new file that I have created "hooks.php" and placed it the include file. Sorry for asking, I'm in a learning mode and it's not that easy. By the way, my name is Vincent 0 Quote Link to comment Share on other sites More sharing options...
hostxls Posted July 28, 2016 Author Share Posted July 28, 2016 Hello, Thanks again. I have solve the problem. 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.