Get Qi Theme with 150 superbly designed WordPress demos

Get Qi Theme
Qi Theme
Sign up for our newsletter and be the first to get all the latest Qode news and updates.

How to Hide the WordPress Admin Bar

How to Hide the WordPress Admin Bar

As soon as you login to your WordPress admin dashboard, one of the first things you’ll notice is the WordPress admin bar, located at the very top of the screen. This toolbar is useful because it contains multiple handy quick-links you can use for various purposes, such as creating new posts, pages, items, or for accessing the documentation, etc. Just like you can customize your WordPress theme, you can modify even the admin toolbar, depending on your preferences.

However, some people find it totally distracting and would rather remove it altogether from the screen. Website developers and, in particular WordPress editors, have a strong dislike for it, as it can often change the overall look of the page they are currently creating or editing. On the other hand, subscribers and customers can’t see the admin bar, which makes sense, as those two user roles can’t make edits on a WordPress site.

The shortcuts and options available in the admin bar vary depending on a users’ role. For instance, this is what admin bar looks like for administrators:

WordPress Admin bar

In this tutorial, we will show you three ways to remove the admin bar from your dashboard:

How to Hide the WordPress Admin Bar via the Dashboard

This is the most straightforward way of hiding the WordPress admin bar. And you can do it in just 4 steps:

1. Users > All Users

Once you login to your WordPress website, access the admin dashboard. From there, click on Users and then select the All Users option. It doesn’t matter if you’re using Gutenberg or the Classic editor. These options are the same for everyone.

WordPress Admin Bar

2. Edit

Since you’ve selected All Users from the menu, you can now see all the user profiles you created for your website. To start applying the changes for a specific profile, click on the Edit button underneath the username.

Hide the WordPress Admin Bar

If you’d like to remove the admin bar only for yourself, simply go to Users > Your Profile.

Hide Admin Bar

3. Show Toolbar when viewing site

Scroll down to Toolbar (you’ll find it under Keyboard Shortcuts) and uncheck the Show Toolbar when viewing site box.

Admin Toolbar

4. Update User / Profile

To save the changes, click the Update Profile or Update User button at the bottom of the page. In case you chose Users > All Users from the menu, you’ll see the Update User button. If you went straight to Users > Your Profile, the Update Profile button will appear.

Update WordPress User
Qode Themes: Top Picks
Bridge New Banner

Creative Multi-Purpose WordPress Theme

Stockholm WordPress Theme

A Genuinely Multi-Concept Theme

Startit WordPress Theme

Fresh Startup Business Theme

How to Hide the WordPress Admin Bar Using a Plugin

Another way to remove the WordPress admin bar is by installing a plugin. This is handy if you want to hide the admin bar for all users at once, without having to disable it separately for each user profile.

There are multiple plugins you can use, but the most popular one is definitely the Hide Admin Bar plugin. It currently has more than 40,000 active installations and a 4.5/5 star rating on It’s super easy to use, as there’s literally nothing to set up. All you need to do is install the plugin, activate it, et voilà, the admin bar is now gone.

Hide Admin Bar plugin

Another widely used plugin is Admin bar Disabler, with more than 10,000 active installations and a rating of 4.5/5 stars. This plugin enables you not only to hide the WordPress admin bar for everyone, but also to either black list it or white list it for certain user roles. Once you install and activate the plugin, head over to Settings > Admin Bar Disabler and customize it as per your requirements.

Admin bar Disabler Plugin

How to Hide the WordPress Admin Bar with Code

The WordPress admin bar can be easily removed using code as well. The best thing about it is that you don’t need to be an experienced developer to do it. There are two code snippets you can use, depending on what you’d like to achieve.

If you’d like to remove the admin bar for all users, this is the code you should use and add to your functions.php file:

add_filter('show_admin_bar', '__return_false');

On the other hand, if you’d like to disable the WordPress admin for everyone except users with administrative privileges, go with this code instead:

add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {


And that’s all, folks! The WordPress admin bar won’t bother you any longer. In case you want to remove it, we showed you how to do it in three simple ways, without breaking a sweat. Now that you’ve eliminated all distractions, you can enjoy creating some stellar WordPress pages.

Post your comment