Jump to content

Hide specifice tabs in client profile


simx

Recommended Posts

Hi all,

Please could someone advise me how to complete the above mentioned task?

I have searched the community and found that it could be acheived via css but I edit the file (style.css) and nothing happens.

The tab I would like to remove / hide is 'Quotes' and really I'd like to add 'Log' with the rest.

I am running Version: 7.6.1

Any advise is greatly appreciated.

Link to comment
Share on other sites

3 hours ago, simx said:

I have searched the community and found that it could be acheived via css but I edit the file (style.css) and nothing happens.

you might be referring to this post of mine...

the idea of editing the css would still work in v7.6.1, but style.css is no longer used and therefore you'd need to edit another css file (all.min.css).

but as I mentioned at the end of that post, you could also use a hook to add the css directly to the page...

<?php

add_hook('AdminAreaHeadOutput', 1, function($vars) {
    return <<<HTML
    <style>#clientTab-8 { display: none;}</style>
HTML;
});

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • 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