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
Contents
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.”
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');
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.