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 →
GridBit PRO WordPress Theme

GridBit PRO

Are you looking for a feature-rich version of the GridBit Free WordPress Theme? Then you will fall in love with...

$25.00
HotWP PRO WordPress Theme

HotWP PRO

If you like HotWP free WordPress Theme, you will love the HotWP premium version. HotWP PRO is easy to use,...

$25.00
Clean Gallery PRO WordPress Theme

Clean Gallery PRO

If you like Clean Gallery free WordPress Theme, you will love the premium version. Clean Gallery PRO is an elegant,...

$25.00
NeatMag PRO WordPress Theme

NeatMag PRO

Do you like the NeatMag Free WordPress Theme?, Then you will love the premium version. NeatMag PRO is very user...

$25.00
Simple Writer PRO WordPress Theme

Simple Writer PRO

Simple Writer PRO is a feature-rich, improved and advanced version of Simple Writer Free WordPress Theme. When compare with the...

$25.00
PureMag PRO WordPress Theme

PureMag PRO

If you like PureMag free WordPress Theme, you will love the premium version. PureMag PRO is an user friendly, HTML5/CSS3...

$25.00
GridHub PRO WordPress Theme

GridHub PRO

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

$25.00
GridWP PRO WordPress Theme

GridWP PRO

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

$25.00

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

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