Wordpress: Remove Admin bar in Theme

Stefan Baumgartner

Stefan on Mastodon

More on 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

More articles on Wordpress

Stay up to date!

3-4 updates per month, no tracking, spam-free, hand-crafted. Our newsletter gives you links, updates on fettblog.eu, conference talks, coding soundtracks, and much more.