Category: Admin Toolbar

How to Hide/Remove Admin Toolbar Bar in WordPress

WordPress automatically shows an admin toolbar at the top of the page for logged-in users. Many users do not like to this WordPress admin toolbar bar because it is not displaying well with their WordPress themes.

Add the code given below into your functions.php file to prevent that toolbar from displaying:

add_filter('show_admin_bar', '__return_false');

Alternate code:

function nwt_remove_admin_bar(){
	return false;
}
add_filter( 'show_admin_bar' , 'nwt_remove_admin_bar');