xfini Posted January 5, 2016 Share Posted January 5, 2016 I would like to make some simple changes in six theme. I searched the solution, but without success, plz help me. 1 ) I need to change the HOME URL from menu. i searched in "header.tpl, but found nothing.. 2 ) change WHMCS Home to mysite.com/clientarea.php thanks in advance 0 Quote Link to comment Share on other sites More sharing options...
Amcom Posted January 6, 2016 Share Posted January 6, 2016 (edited) Here is the file I use. Name the file anything.php ( includes/hooks ) <?php #adding Menu Item to primaryNavbar use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { /** Add "Welcome" to the menu item. **/ $primaryNavbar->addChild('Welcome') ->setUri('index.php') ->setOrder(5); /** Rename the "Home" menu item. **/ $primaryNavbar->getChild('Home') ->setLabel('Account Overview') ->setUri('clientarea.php'); }); Edited January 6, 2016 by Amcom 0 Quote Link to comment Share on other sites More sharing options...
xfini Posted January 6, 2016 Author Share Posted January 6, 2016 Here is the file I use. Name the file anything.php ( includes/hooks ) Thanks for your help. Sorry, I'm new at this, I'm not sure how to use this? 0 Quote Link to comment Share on other sites More sharing options...
Amcom Posted January 6, 2016 Share Posted January 6, 2016 Upload a file to your WHMCS dir /includes/hooks folder name the file ( added Menu Item.php ) then edit it replacing the code with this code <?php #adding Menu Item to primaryNavbar use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { /** Add "Welcome" to the menu item. **/ $primaryNavbar->addChild('Welcome') ->setUri('index.php') ->setOrder(5); /** Rename the "Home" menu item. **/ $primaryNavbar->getChild('Home') ->setLabel('Account Overview') ->setUri('clientarea.php'); }); I use the Welcome button to return to the home page. If you like register at my site to see the flow, I can always always delete your account after you see how I have it setup for my site. If you let me know what buttons you want and where they go I will try to put the code together for you. http://www.sprhost.com 0 Quote Link to comment Share on other sites More sharing options...
Infopro Posted January 7, 2016 Share Posted January 7, 2016 Nice looking site, Amcom! You should update your cPanel logo there with the newer version though. http://cpanel.com/cpanel-brand-guide/ 0 Quote Link to comment Share on other sites More sharing options...
litemere Posted December 17, 2020 Share Posted December 17, 2020 This really helped me, thanks. 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.