Whmcs home button
Whmcs / / home button
Change URL for Home and Logo on WHMCS





:
public_html/whmcs/includes/hooks




create a .php file in /includes/hooks, paste the code into it, save and your home link should change.


the logo link is in header.tpl...


:
 {if $assetLogoPath}
           <a href="{$WEB_ROOT}/index.php" class="logo"><img src="{$assetLogoPath}" alt="{$companyname}"></a>
       {else}
           <a href="{$WEB_ROOT}/index.php" class="logo logo-text">{$companyname}</a>
       {/if}
and for the menu, add a .php file to /includes/hooks and add...


:
<?php

use WHMCS\View\Menu\Item as MenuItem;

add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar)
{
   if (!is_null($primaryNavbar->getChild('Home'))) {
           $primaryNavbar->getChild('Home')
                       ->setURI('http://www.google.com');
   }
});


:
https://developers.whmcs.com/hooks/getting-started/
https://whmcs.community/topic/271901...-on-whmcs-721/
https://whmcs.community/topic/292390...ton-on-navbar/
https://forum.whmcs.com/showthread.p...822#post505822