• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Remove top WordPress Toolbar

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Remove top WordPress Toolbar

This topic is: not resolved

Tagged: WordPress Toolbar

  • This topic has 4 replies, 3 voices, and was last updated 11 years, 9 months ago by micki.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • September 13, 2013 at 1:17 pm #62327
    micki
    Participant

    Hi All,

    I have tried adding every code I can find to the functions file, to get rid of the top toolbar. I am not sure why, but none are working. I do not want anyone but the admin to see it. Does anyone know a piece of code that works? I would prefer not using a plugin.

    Thanks so much for any help!

    September 13, 2013 at 1:58 pm #62336
    wpspeak
    Member

    Have you tried this plugin? http://wordpress.org/plugins/wp-admin-bar-removal/


    WP Speak | Help the Awesome #Genesiswp Community

    September 16, 2013 at 7:36 pm #62917
    micki
    Participant

    Thanks for the link, I was hoping to do it without a plugin.

    September 16, 2013 at 7:56 pm #62928
    nunotmp
    Member

    Use this

    
    add_action('set_current_user', 'hide_admin_bar');
    function hide_admin_bar() {
      if (!current_user_can('edit_posts')) {
        show_admin_bar(false);
      }
    }
    

    This will check if the use has the ability to edit post(basically editor or admin ).


    Genesis Child Themes – Follow Me

    September 26, 2013 at 12:17 pm #64315
    micki
    Participant

    thanks, i tried this early on and it did not effect anything. i tried just about every code i could find :), the above plugin does work but would still like to figure it out without a plugin :).

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble