rottenteeth Posted May 31, 2021 Share Posted May 31, 2021 Hi, recently I added a new menu item with hook, everything it's good with that, but I have duplicated icon in this menu item, but only after login. When I delete icon in php I lost it in mainpage but It exist after login. I don't know how to fix it. add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Store'))) { $primaryNavbar->removeChild('Store'); } }); add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { if (!is_null($primaryNavbar->getChild('Domains'))) { $primaryNavbar->removeChild('Domains'); } }); add_hook('ClientAreaPrimaryNavbar', 1, function (MenuItem $primaryNavbar) { $primaryNavbar->addChild('Domeny www') ->setUri('cart.php?a=add&domain=register') ->setOrder(13); if (!is_null($primaryNavbar->getChild('Domeny www'))) { $primaryNavbar->getChild('Domeny www') ->setIcon('fa-globe-europe'); } }); before and after login the html code look like this <div class="panel" menuitemname="Domeny www"> <a href="https://<domain>/cart.php?a=add&domain=register" class="fal fa-globe menu-icon-new"> <i class="fas fa-globe-europe"></i> Domeny www </a> </div> 0 Quote Link to comment Share on other sites More sharing options...
rottenteeth Posted June 16, 2021 Author Share Posted June 16, 2021 Is there somebody who could help me? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 16, 2021 Share Posted June 16, 2021 have you contacted WHMCSDes (the Digit theme developer) to see if it's their template causing this ? you have bought Digit haven't you ?? the fact your domain fails the WHMCS license verification tends to make me suspicious about whether you have! 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.