WordPress 3.1 brings a new feature called wordpress admin bar. That’s a bar displayed on top of your site when you log in and it gives you quick access to general admin actions. I’m sure they will add an option to hide it soon. Until then, here is how to hide it manually.



1. Open functions.php in your theme folder.
2. Put the following code anywhere you like. (Must be wrapped inside <?php & ?> tags)

[php title=”functions.php – Code to disable admin bar”]function disable_admin_bar(){
return false;
}
add_filter( ‘show_admin_bar’ , ‘disable_admin_bar’ );

If you don’t want to edit your files, there is also a plugin doing this job for you.

Like this post? Take a look at my other wordpress hacks: