How to Remove WordPress Admin Toolbar

Unless users have disabled it from settings, WordPress automatically shows an admin toolbar at the top of the page for logged-in users.

Add this code to the functions.php file in your theme to hide/remove WP admin toolbar:

add_filter('show_admin_bar', '__return_false');

Alternative code: If you want, the below code can also be used to hide the WordPress admin toolbar from the front-end instead of the above code.

function themesdna_remove_admin_bar() {
    show_admin_bar(false);
}
add_action('after_setup_theme', 'themesdna_remove_admin_bar');

Don't forget to save the functions.php.

Our WordPress Themes

Below are some of our premium WordPress themes. View all our free and premium WordPress themes →
BlogWP PRO WordPress Theme

BlogWP PRO

If you like BlogWP free WordPress Theme, you will love the premium version. BlogWP PRO is easy to use, feature-rich,...

$30.00
MintWP PRO WordPress Theme

MintWP PRO

If you like free version of MintWP WordPress Theme, you will love the premium version. MintWP PRO is an improved...

$25.00
GridBone PRO WordPress Theme

GridBone PRO

$35.00
GridHot PRO WordPress Theme

GridHot PRO

If you have tried GridHot Free WordPress Theme, then you will love the premium version. GridHot PRO version has color...

$35.00
RapidWP PRO WordPress Theme

RapidWP PRO

Did you try RapidWP Free WordPress Theme?, Then you will love the premium version. RapidWP PRO is an improved, more...

$30.00
ListMode PRO WordPress Theme

ListMode PRO

$35.00
MagShow PRO WordPress Theme

MagShow PRO

MagShow PRO is the premium version of MagShow free WordPress Theme with more advanced features. MagShow PRO version has 160+...

$35.00
PrimeWP PRO WordPress Theme

PrimeWP PRO

If you like PrimeWP Free WordPress Theme?, Then you will love the premium version. PrimeWP PRO is an more improved...

$35.00

Can't you choose a single theme? Purchase All Themes for $100.

Save money with our low, one-time price for access to all of our 54 WordPress themes.