Hi, in this guide i will show you how you can hide the sidebar from whmcs
For Orderform
<?php use WHMCS\View\Menu\Item as MenuItem; add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { $client = Menu::context('client'); if (is_null($client) and (!is_null($secondarySidebar->getChild('Categories')))) { $secondarySidebar->removeChild('Categories'); } if (is_null($client) and (!is_null($secondarySidebar->getChild('Actions')))) { $secondarySidebar->removeChild('Actions'); } }); For clientarea
add_hook('ClientAreaSecondarySidebar', 1, function(MenuItem $secondarySidebar) { if (!is_null($secondarySidebar->getChild('Client Shortcuts'))) { $secondarySidebar->removeChild('Client Shortcuts'); } if (!is_null($secondarySidebar->getChild('Client Contacts'))) { $secondarySidebar->removeChild('Client Contacts'); } });