Remove admin-bar WordPress 3.1
Posted: March 18th, 2011 | Author: Bernhard | Filed under: Wordpress | No Comments »WordPress 3.1 is released and comes with many new features. One of them is the extra admin bar visible at the front-end of your website when user are logged in:
![]()
Not everyone is happy with this new feature. Here is the way to disable it for project:
Open functions.php and add:
// Disable admin-bar from showing on your blog wp_deregister_script('admin-bar'); wp_deregister_style('admin-bar'); remove_action('wp_footer','wp_admin_bar_render',1000);


Leave a Reply