Black Friday Sale!

Save up to $50 through December 3rd.

Shop Now

[Resolved] remove tabs

Home Forums Support [Resolved] remove tabs

Home Forums Support remove tabs

  • This topic has 3 replies, 2 voices, and was last updated 10 years ago by Tom.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #48445
    Chad Biggs

    Is there a way to remove tabs from the dashboard? I would like to remove themes,customize and GP hooks.

    #48570
    Tom
    Lead Developer
    Lead Developer

    Your best bet is to use this function:

    add_action('admin_head','generate_custom_admin_head');
    function generate_custom_admin_head() {
       ?>
          <style>
             #menu-appearance {display:none;}
          </style>
       <?php
    }

    That will hide the “Appearance” section of the Dashboard, which includes Customize and GeneratePress.

    A more thorough version which you can use with the above is here: https://gist.github.com/generatepress/f04d0881f806e84be0ac

    It will fully remove everything GP related – good for white labeling.

    These functions can go in your child theme’s functions.php file, or in a new plugin (recommended) – use Pluginception to create the plugin super easily.

    #48659
    Chad Biggs

    Thank you.

    #48770
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.