Title: Admin Bar for 3.1
Last modified: August 19, 2016

---

# Admin Bar for 3.1

 *  Resolved [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/)
 * I like the addition of the admin bar, but is there any way to remove specific
   items from it… for example I don’t use comments on my site so I have no need 
   for it in the bar. As well as appearance since I’ll never change the theme nor
   the widgets (don’t use those either). thanks!

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/admin-bar-for-31/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/admin-bar-for-31/page/2/?output_format=md)

 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1933966)
 * I agree that it’s kind of an imposition especially on sites that require a login.
   You can turn it off under Users > Your Profile and there is also code that you
   can add to the functions.php of your theme to turn it off globally, but right
   now those are the only options AFAIK.
 *  Thread Starter [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1933992)
 * Ya I added the remove code in my functions.php file but I would rather keep it.
   It’s kinda nice to see the page, see an error, and goto the edit page right from
   it. It’s very handy but filled with things I don’t care to look at or would ever
   use.
 *  Thread Starter [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1933996)
 * I’m also digging the custom menus but wish I would have seen it before building
   a new client site… they would have liked it instead of using the exclude page
   plug in that I used. Ha, oh well… next time maybe.
 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1933997)
 * It’s also very easy to have an “edit this page” link on the page which only appears
   if you are logged in and have edit capabilities. Personally I don’t think I need
   the admin bar and I think it tends to homogenize all WP sites. Of course if you
   are running a business you pay a lot of money to have a unique look. I’m glad
   that there are ways to turn it off.
 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1933998)
 * It’s very easy to exclude pages from the menu without a plugin. The custom menus
   thing is more about being able to add pages, especially pages that are outside
   of your WordPress installation.
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934004)
 * I have a high traffic intra-net site where users really have no need for the 
   Admin Bar at the moment. I disabled it globally using Ozh’s plugin.
 * [Disable Admin Bar](http://wordpress.org/extend/plugins/disable-admin-bar/)
 * That was just one more option in my case. Works like a charm so far.
 *  Thread Starter [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934005)
 * No need for a plug in… just toss this in your functions.php:
    add_filter( ‘show_admin_bar’,‘
   __return_false’ );
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934021)
 * That’s all the plugin actually is as well, just the same filter. I was being 
   the lazy sort today because I let them use a theme switcher for personalization,
   and didn’t feel like editing multiple theme function files. The plugin was a 
   hard and fast solution. Plus, it’s just so darned cool!
 * 🙂
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934025)
 * The plugin is ‘better’ since it’s not theme dependent.
 * If you run MultiSite, OR single site actually, put it in the mu-plugins folder(
   if you don’t have it, make it on the same level as the plugins folder). That 
   will AUTOMATICALLY run on your website, and never be able to be turned off.
 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934036)
 * So how do you get to be a “Half-Elf Support Rogue”?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934047)
 * First you have to sneak up on the code ninjas or team pirates and stab their 
   pockets.
 *  [Jonas Grumby](https://wordpress.org/support/users/ss_minnow/)
 * (@ss_minnow)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934053)
 * Sounds exciting. I just try to steer people in the right direction if possible.
 *  [rubinsandwich](https://wordpress.org/support/users/rubinsandwich/)
 * (@rubinsandwich)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934097)
 * Does anyone know a simple way to disable the Admin Bar for “subscribers” only?
 * I actually like it for my own use, but would really rather have it hidden for
   the vast number of subscribers who would not use any of its functionality.
 * Thanks!
 *  Thread Starter [consumedesign](https://wordpress.org/support/users/consumedesign/)
 * (@consumedesign)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934123)
 * function yoast_disable_admin_bar() {
    if ( 2 == get_current_user_id() ) { add_filter(‘
   show_admin_bar’, ‘__return_false’ ); } } add_action( ‘init’, ‘yoast_disable_admin_bar’,
   9 );
 * I think? It would go into your functions.php… I’m using it now.
 *  [rubinsandwich](https://wordpress.org/support/users/rubinsandwich/)
 * (@rubinsandwich)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/#post-1934145)
 * @consumerdesign, that disables it for a specific user (whomever has the user 
   ID of 2 in the example). I’m looking it do it based on the user role.
 * Thanks to you, I found that Yoast article on the issue and it got me on the right
   track. I’m thinking something along these lines (notice **bold** section):
 * <?php function yoast_hide_admin_bar_settings() {
    ?> <style type=”text/css”> .
   show-admin-bar { display: none; } </style> <?php }
 * function yoast_disable_admin_bar() {
    **if (current_user_can( ‘publish_posts’))**{
   add_filter( ‘show_admin_bar’, ‘__return_false’ ); } } add_action( ‘init’, ‘yoast_disable_admin_bar’,
   9 );
 * Any thoughts?

Viewing 15 replies - 1 through 15 (of 30 total)

1 [2](https://wordpress.org/support/topic/admin-bar-for-31/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/admin-bar-for-31/page/2/?output_format=md)

The topic ‘Admin Bar for 3.1’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [bar](https://wordpress.org/support/topic-tag/bar/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 30 replies
 * 11 participants
 * Last reply from: [sharris203](https://wordpress.org/support/users/sharris203/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/admin-bar-for-31/page/2/#post-1934701)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
