Disable the Admin bar in WordPress

I hate the new Admin bar in WordPress, and while it’s easy to disable in your User profile, if you have a site with many subscribers and you don’t want them to be annoyed by the bar, or for some design reason you don’t want it to show, here is the code to place in your functions.php file:

/* Disable the Admin Bar for all but admins. */
if(!current_user_can(‘administrator’)):
show_admin_bar(false);
endif;

If you want to disable the admin bar completely, add this to your functions.php file:

/* Disable the Admin Bar for everyone. */
show_admin_bar(false);

10 Responses to “Disable the Admin bar in WordPress”

  1. Jon says:

    Thanks! Exactly what I was looking for. I also hate the Admin bar.

  2. Tent boy says:

    thanks, needed this

  3. well very nice info, but i like the admin panel because it`s easy to navigate when working on the blog all day long. but congrats for the post, it`s nice to know more and it`s even nicer when there are people like you who are sharing the knowledge!

    Cheers!

  4. gugik says:

    Thanks, nice information.

  5. Maybe I will try this out although the admin bar doesn’t bother me as much as some of the others here. :)

  6. nicomp says:

    That bar drives me nuts. It actually makes me think I’ve been hacked or something when I glance at the screen and don’t expect to see it. Thanks.

  7. Giulidda says:

    Thank you, have long wanted to remove this toolbar, but do not know how

  8. Kate says:

    Great tip. Thanks!

  9. How nice and informative site it,s , Thanks for sharing .

  10. Mrinal says:

    Wow. Thanks. Anyway; now there is direct option for this. Isn’t it? Is there something I am missing?

Leave a Reply