Oliver F Posted February 19, 2020 Share Posted February 19, 2020 Hi! Recently I created several hooks to remove unnecessary sidebar widgets like "categories" and "actions". For example: Quote <?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $SecondarySidebar) { if(!is_null($SecondarySidebar->getChild('Actions'))){ $SecondarySidebar->removeChild('Actions'); } }); To remove the Actions. When I have done this my whole client area and order form is not centred, is very much to the right. And if I can minimize the client area gap as well (as shown on the 2nd picture) How do I center it? (I'm using custom theme) 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 22, 2020 Share Posted February 22, 2020 On 19/02/2020 at 11:31, Oliver F said: Recently I created several hooks to remove unnecessary sidebar widgets like "categories" and "actions". there has been an issue with Six since it was launched that if you remove those sidebars from the cart, then the page width doesn't auto adjust - because there is a 3/9 split in the divs. On 19/02/2020 at 11:31, Oliver F said: When I have done this my whole client area and order form is not centred, is very much to the right. And if I can minimize the client area gap as well (as shown on the 2nd picture) How do I center it? (I'm using custom theme) the above thread outlines how to do it with Six, but i've no idea how far your custom theme has deviated from Six - but hopefully it gives you the basic steps off what might fix it. btw - if you end up fixing this in the template, then you wouldn't need to use that hook as the sidebars would have been removed from the cart by the template changes. 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.