Bertie Posted April 12, 2018 Share Posted April 12, 2018 (edited) Hi all, I did find this old thread: https://whmcs.community/topic/259789-removing-tab-from-admin-client-summary-menu/ but can't reply to it probably due to it's age. I'm trying to hide the "Quotes" tab on the client summary page if possible. I have tried the CSS trick mentioned in the thread but it doesn't seem work. Maybe something has changed within versions where this is no longer possible. OR At least change the order? On smaller screens the "Notes" tab is now hidden due to the Tickets tab being added. I would rather have "Quotes" hidden and the "Notes" tab being on display at all times. Using Version 7.5 Thanks, Edited April 12, 2018 by Bertie Link to comment Share on other sites More sharing options...
brian! Posted April 12, 2018 Share Posted April 12, 2018 56 minutes ago, Bertie said: I'm trying to hide the "Quotes" tab on the client summary page if possible. I have tried the CSS trick mentioned in the thread but it doesn't seem work. Maybe something has changed within versions where this is no longer possible. the idea still works, just the method to do it has changed... style.css is no longer used in the admin templates... https://docs.whmcs.com/WHMCS_7.1_Asset_Changes#Admin_Area_also_Deprecates it now uses all.min.css, so in theory you'd have to edit all.css, minify it and then overwrite the existing file - but that's pointless because you'd need to do it after every update. the quicker way is to just use an action hook to add your custom css to the admin header. <?php add_hook('AdminAreaHeadOutput', 1, function($vars) { return <<<HTML <style>#clientTab-8 { display: none;}</style> HTML; }); 1 Link to comment Share on other sites More sharing options...
Bertie Posted April 12, 2018 Author Share Posted April 12, 2018 2 hours ago, brian! said: the idea still works, just the method to do it has changed... style.css is no longer used in the admin templates... https://docs.whmcs.com/WHMCS_7.1_Asset_Changes#Admin_Area_also_Deprecates it now uses all.min.css, so in theory you'd have to edit all.css, minify it and then overwrite the existing file - but that's pointless because you'd need to do it after every update. the quicker way is to just use an action hook to add your custom css to the admin header. <?php add_hook('AdminAreaHeadOutput', 1, function($vars) { return <<<HTML <style>#clientTab-8 { display: none;}</style> HTML; }); Thanks Brian, that has worked a treat! Link to comment Share on other sites More sharing options...
Recommended Posts