dalex Posted May 18, 2017 Share Posted May 18, 2017 How do I remove the News & Register Domain section in the client area? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 18, 2017 Share Posted May 18, 2017 https://forum.whmcs.com/showthread.php?106367-Remove-a-default-panel-from-Six&p=437387#post437387 <?php use WHMCS\View\Menu\Item; add_hook('ClientAreaHomepagePanels', 1, function (Item $homePagePanels) { $homePagePanels->removeChild('Register a New Domain'); $homePagePanels->removeChild('Recent News'); }); 0 Quote Link to comment Share on other sites More sharing options...
dalex Posted May 18, 2017 Author Share Posted May 18, 2017 How do I implement this? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
graisbeck Posted May 18, 2017 Share Posted May 18, 2017 How do I implement this? Thanks! It's a hook, so create a new .php file, giving it a relevant name (for example - panelhomepage.php) in the /includes/hooks directory and paste the code into it. Then refresh your portal browser. 0 Quote Link to comment Share on other sites More sharing options...
dalex Posted May 18, 2017 Author Share Posted May 18, 2017 It worked, thank you! 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.