tsupan Posted December 9, 2022 Share Posted December 9, 2022 Hi , I am trying to modify the 'contact us' menu. Can anyone tell me how to open a new tab upon clicking the link from the code below? <?php add_hook('ClientAreaNavbars', 1, function () { // Get the current navigation bars. $primaryNavbar = Menu::primaryNavbar(); $secondaryNavbar = Menu::secondaryNavbar(); if (!is_null($primaryNavbar->getChild('Contact Us'))){ // Save the "Contact Us" link and remove it from the primary navigation bar. $contactUsLink = $primaryNavbar->getChild('Contact Us'); $primaryNavbar->removeChild('Contact Us'); // Add the email sales link to the link's drop-down menu. $contactUsLink->addChild('email-sales', array( 'label' => 'Send us a message', 'uri' => 'contact.php', 'order' => 1, 'icon' => 'fa-envelope-o', )); 0 Quote Link to comment Share on other sites More sharing options...
bear Posted December 9, 2022 Share Posted December 9, 2022 8 hours ago, tsupan said: Can anyone tell me how to open a new tab upon clicking the link from the code below? Found in the WHMCS instructions (via fast Google search):https://docs.whmcs.com/Client_Area_Navigation_Menus_Cheatsheet#Open_Links_In_A_New_Tab 1 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.