Jump to content

Hide tab from client summary


Bertie

Recommended Posts

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 by Bertie
Link to comment
Share on other sites

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. O.o

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;

});

or_Hx_Js_Hn_QZa_Hq_GLc_J5_RGn_A.png

Link to comment
Share on other sites

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. O.o

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;

});

or_Hx_Js_Hn_QZa_Hq_GLc_J5_RGn_A.png

 

Thanks Brian, that has worked a treat! :)

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated