ninjaunmatched Posted April 2, 2018 Share Posted April 2, 2018 Been trying to edit the secondary menu and not working for me so far. I read the docs but the secondary menu items do not have a name for them when I check the developer panel in chrome. So using the examples given do not work. The docs do have an example showing how to edit the Secondary menu... Say you want to change the "Order Hosing link". What child would you call then with getChild? getElementById does not work. Need some assistance. To clarify: WHMCS portal home has the main menu on top and under the domain search there is another bar (i.e. the "How can we help you today?" bar) with links starting with Buy A Domain. I want to change these links with a different URL. Link to comment Share on other sites More sharing options...
brian! Posted April 2, 2018 Share Posted April 2, 2018 Hi, 10 hours ago, ninjaunmatched said: WHMCS portal home has the main menu on top and under the domain search there is another bar (i.e. the "How can we help you today?" bar) with links starting with Buy A Domain. I want to change these links with a different URL. as you can see from the above image, the Primary Navbar handles most of the top menu, the Secondary Navbar handles the Account (right hand side) of the menu and you can use hooks to change them... but the part you want to edit doesn't use any hooks, instead you will need to edit the home shortcuts section in the 'header.tpl' template in your active template folder (e.g Six) if you want to change links... <div class="home-shortcuts"> <div class="container"> <div class="row"> <div class="col-md-4 hidden-sm hidden-xs text-center"> <p class="lead"> {$LANG.howcanwehelp} </p> </div> <div class="col-sm-12 col-md-8"> <ul> {if $registerdomainenabled || $transferdomainenabled} <li> <a id="btnBuyADomain" href="domainchecker.php"> <i class="fa fa-globe"></i> <p> {$LANG.buyadomain} <span>»</span> </p> </a> </li> {/if} <li> <a id="btnOrderHosting" href="cart.php"> <i class="fa fa-hdd-o"></i> <p> {$LANG.orderhosting} <span>»</span> </p> </a> </li> <li> <a id="btnMakePayment" href="clientarea.php"> <i class="fa fa-credit-card"></i> <p> {$LANG.makepayment} <span>»</span> </p> </a> </li> <li> <a id="btnGetSupport" href="submitticket.php"> <i class="fa fa-envelope-o"></i> <p> {$LANG.getsupport} <span>»</span> </p> </a> </li> </ul> </div> </div> </div> </div> if you just want to change the labels, you can use Language Overrides to do that. Link to comment Share on other sites More sharing options...
ninjaunmatched Posted April 2, 2018 Author Share Posted April 2, 2018 Lol... okay. I just assumed those were also same or similar as main menu. Okay thanks I can do that easily. Link to comment Share on other sites More sharing options...
Recommended Posts