Hi,
I need some help completely removing a sidebar from the client area.
I'm using a Hook to remove the sidebar, however I'm always left with this empty div, specifically the <div class="col-mi-3 pull-md-left sidebar">. It ends up looking like this. https://prnt.sc/2359cs7
This is the hook I'm using:
add_hook('ClientAreaPrimarySidebar', 1, function(MenuItem $secondarySidebar)
{
if (!is_null($secondarySidebar->getChild('Ticket List Status Filter'))) {
$secondarySidebar->removeChild('Ticket List Status Filter');
}
});
Am I doing something wrong with the hook, or is it possibly just an issue in my style-sheet?
Thanks