How To Disable WordPress Admin Bar For All Users Except Admins

  1. Documentation
  2. Clearfy
  3. How To Disable WordPress Admin Bar For All Users Except Admins

Admin Bar is a toolbar to access admin tools and other features and other tools. You can find it at the top of the screen.

How To Disable WordPress Admin Bar For All Users Except Admins

So why should you disable WordPress Admin bar? If a website owner is an all-in-one: admin, copywriter, content manager, then there’s no need to hide anything. However, if there are many users with different roles then it becomes a real problem. Mostly, because of privacy and data protection.

Also, there is a particular category of admins who prefer minimalism by all means. And they just want to disable WordPress Admin bar. Once it is done, the admin bar disappeared for good.

If you decide to disable WordPress admin bar consider using Clearfy. It’s a free plugin, you can find and download it from our website or using the WordPress repository.

Disable WordPress Admin Bar With Clearfy

First things first: install the plugin, go to Settings => Clearfy menu.

How To Disable WordPress Admin Bar For All Users Except Admins

Open Advanced. Now scroll down a bit and find Admin Bar. Go through the general options inside the color box. If you want to go further, check options outside the color box. Those features are more advanced and purely aesthetic.

How To Disable WordPress Admin Bar For All Users Except Admins

Clearfy provides the intuitive and self-explanatory interface, so you can disable WordPress Admin bar in one click. You decide who can see the bar: no one or no one, except for the admin.

As a bonus, you can remove the WordPress logo from the admin bar by pressing ON next to Remove admin bar WP logo. The result should look this way:

How To Disable WordPress Admin Bar For All Users Except Admins no icon How To Disable WordPress Admin Bar For All Users Except Admins

You can customize Howdy, too. Activate the necessary option and fill in the new text. For example, Hello.

How To Disable WordPress Admin Bar With The Code

For All, Except For Admins

Put this code into the functions.php file:

/* Disable WordPress admin bar for all, except for admins. */
if (!current_user_can('administrator')):
  show_admin_bar(false);
endif;

For All Users

The procedure is the same: paste the code to functions.php:

/* Disable WordPress admin bar for all users. */  show_admin_bar(false);

What Option To Choose?

Each option has its benefits. However, if you are not a professional then changing the code may be quite risky. For example, you need to find where functions.php is being stored. Then there is a chance that extra symbols sneak into the code, and the website stops working. But it’s not hard to search for Clearfy in Plugins, or repository, or our website. We recommend the last option because the Clearfy website (clearfy.pro) provides a lot of text tutorials and video guides on WordPress optimization.

Scroll to Top