How to remove the WordPress Admin Bar

WordPress 3.1 came out with a couple of new features, with the inclusion of an “Admin Bar” being the most visible of them all. If you are unhappy with the bar and want to take it off your blog, here are a few ways:

Method 1: From the good ol’ options page


Goto Users > Your Profile and uncheck “Show Admin Bar” from the options. However, this is a per-user option and wont be feasible if you want to disable the bar for a multi-user blog.

Method 2: Edit your theme’s functions.php file

Add the following lines of code to disable the Admin Bar globally

1
remove_action('init', 'wp_admin_bar_init');

Also, to disable “Show Admin Bar” option for all your users, you can add the following line too:

1
remove_action( 'personal_options', '_admin_bar_preferences' );

Method 3: Using plugins

If you do not have permissions to edit your theme files, you can go with installing plugins. With the release of WP 3.1,

Global Hide/Remove Admin Bar Plugin – Add a global option in Settings Menu to hide/remove the new Admin bar in WP 3.1 and above.

Admin Bar Removal (completely disable) 3.1 only – Completely disables Frontend and Backend Menu that now appears on the WordPress 3.1 based blogs, plus helps to remove code and get more free memory.

Admin Bar Disabler – Disable the WP Admin Bar in 3.1+ completely, or only for roles and capabilities which aren’t in the ‘whitelist’/‘blacklist’. This plugin can help you disable admin bar for subscribers on your blog.

Posted by

Deepak Thomas is a guy who hearts wordpress. If you're having trouble with wordpress, tweet it with @thinkdj and he'll try to solve your queries for a box of chocolates.

Leave a Reply

Required fields are marked *.


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>