SPECIAL OFFER Get 30% OFF on All Qode Plugins Discount code: WOOCOMMERCE30 SPECIAL OFFER Get 30% OFF on All Qode Plugins Discount code: WOOCOMMERCE30 SPECIAL OFFER Get 30% OFF on All Qode Plugins Discount code: WOOCOMMERCE30
SPECIAL OFFER Get 30% OFF on All Qode Plugins Discount code: WOOCOMMERCE30 SPECIAL OFFER Get 30% OFF on All Qode Plugins Discount code: WOOCOMMERCE30 SPECIAL OFFER Get 30% OFF on All Qode Plugins Discount code: WOOCOMMERCE30
BACK TO TOP

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
Bridge

Creative Multi-Purpose WordPress Theme

Stockholm WordPress Theme
Stockholm

A Genuinely Multi-Concept Theme

Startit WordPress Theme
Startit

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 wordpress.org. 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

Alternatively, you can try a plugin called Hide Admin Bar Based on User Roles, a toll with the most self-explanatory name ever. It is ideal if you want a choice of who gets to see the admin bar and who doesn’t. For instance, you can hide the admin bar for all users, or set the plugin to hide it for guests alone. Depending on the roles you have, you can hide the admin bar for authors, contributors, editors, admins, etc. The developers have recently added a new feature – the ability to show or hide admin based on user capabilities, too. The plugin is very simple to use. Once you install it, you will find a section with options that allow you to show or hide the admin bar to the user roles and capabilities of your choice. Once you set those, click on Save Changes and that’s it.

Hide Admin Bar Based on User Roles

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()) {
show_admin_bar(false);
}
}

Conclusion

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

Comments0