ÓßÑíÈÊ 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