Stefan Baumgartner

Web ops, performance and front-end

Wordpress: Remove Admin bar in Theme

25 August 2015 by @ddprrt | Posted in: Wordpress

The admin bar in Wordpress can be annoying sometimes, hiding some of your design and even having certain side effects you don’t want. With this snippet, you can turn it off:

function my_function_admin_bar() {
  return false;

add_filter( 'show_admin_bar' , 'my_function_admin_bar');

Add this part to your functions.php or include it in a seperate plugin

Comments? Shoot me a tweet!