Removing the WordPress 3.1 Admin Bar

Oct 10 2010 0 Comments

In the upcoming version 3.1 of WordPress you will notice the BuddyPress style admin bar that appears when you’re logged in. Personally I kind of like it but there may be some folks out there who don’t care for it so much. So I’ll show you how to remove it with a simple line of code in your theme’s functions.php file. You ready to see how easy it is?

 remove_action( 'init', 'wp_admin_bar_init' );

Yup, that’s it! Want to only show it on the front end?

if( is_admin() ){ remove_action( 'init', 'wp_admin_bar_init' ); }

Maybe it’ll come in handy, who knows.

Leave a Reply

Your email address will not be published. Required fields are marked *