Disable wordpress 3.1 admin header bar

May 08

With the new release of wordpress 3.1 you can see one admin bar to appear at the top of the page when you are logged-in. If you get irritated due to this you can remove it in few minutes.

 

WordPress hooks method :

wp_deregister_script('admin-bar');
wp_deregister_style('admin-bar');
remove_action('wp_footer','wp_admin_bar_render',1000);

 

You can put above code in your functions.php and admin bar will be disabled. If you are afraid of playing with wordpress hooks or php code i can also suggest you css hack for doing the same.

 

put the class in your theme file. Generally its style.css file in your theme folder.

#wpadminbar { display:none !important; }
html {
margin-top:0px !important;
}

Related Posts:

Leave a Reply