How to Hide or Remove the WordPress Admin Bar Effectively

The WordPress admin bar is a toolbar on top of your WordPress website that shows more or less useful information when you are logged in. Learn how to hide it for your users.

The admin bar is visible in the backend all the time, but additionally, to that, it is also visible at the front page. With its black background color, it often looks like a foreign body and messes with the design of your website. So for many, it’s something they want to get rid of it.

Gladly, it’s easy to deactivate and hide the WordPress admin bar.

Here are a few options to hide the WordPress admin toolbar

Disable the Admin Bar in Settings

You can remove the admin bar from your website.
Just go to Users > Your Profile.
Scroll down to “Toolbar” and unselect “Show Toolbar when viewing site.”

Unselect the toolbar option to hide the WordPress admin toolbar from the front-end

After doing that, the admin bar will no longer be visible on your WordPress website. You still will find the toolbar on the backend of your website. That is the right spot as it shows you useful information about the website. So we don’t recommend removing the admin bar from the backend of your website as you would lock out yourself from status messages from your site.

Remove the Admin Bar with Code

If you want to remove the WordPress admin bar permanently for all your users by using some code, you can copy and paste the code below into your functions.php. You’ll find it in wp-content/themes/theme-name/functions.php

add_filter('show_admin_bar', '__return_false');

Note: I recommended to do code changes on a clone of your production site first before implementing it on your live site finally to prevent any possible errors. That is what WP Staging is for.

Remove the Admin Bar with a Plugin

Another way to remove the WordPress admin bar is to use a plugin.

One of the better plugins for hiding the admin bar is the plugin Auto Hide Admin Bar. This plugin makes the admin bar disappear when you don’t need it and reappear when you need to have a look at it. So you’ll get the best of both worlds: A clean website and all site information you need.