ZoXx Posted April 15, 2017 Share Posted April 15, 2017 Hello, i would like to make the "account" tab in navbar inivible. We made two seperate links for this and dont need it. Anybody know what to do? thanks! 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted April 16, 2017 Share Posted April 16, 2017 so you need to remove it completely? add new file inside /includes/hooks/ directory, called "hideaccountmenu.php" and put the following lines inside it: <?php add_hook('ClientAreaSecondaryNavbar', 1, function($secondaryNavbar) { if (!is_null($secondaryNavbar->getChild('Account')){ $secondaryNavbar->removeChild('Account'); } 0 Quote Link to comment Share on other sites More sharing options...
ZoXx Posted April 16, 2017 Author Share Posted April 16, 2017 Hey, yes we dont need it, we made a custom menu over it. But i tried, got a HTTP ERROR 500 with this code. thanks for fast answer! 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 16, 2017 Share Posted April 16, 2017 try using... <?php add_hook('ClientAreaSecondaryNavbar', 1, function($secondaryNavbar) { if (!is_null($secondaryNavbar->getChild('Account'))){ $secondaryNavbar->removeChild('Account'); } }); 0 Quote Link to comment Share on other sites More sharing options...
ZoXx Posted April 16, 2017 Author Share Posted April 16, 2017 works great! thank you so much! 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.