Beginner’s Guide on How to Disable WordPress Admin Bar for All Users

How will I disable WordPress admin Bar for user as the administrator of my website?

I once have that thought too when I started on WordPress. There are different ways you can disable admin bar on WordPress but first and foremost, you must understand what Admin Bar Area is, then you can continue from there. There are different ways to remove admin Bar, either with default, plugins and codes, so we will show you how to disable WordPress admin bar for users except admins.

What is WordPress Admin Bar


The WordPress Admin Bar is the bar that goes across the very top of the screen once you’re logged in to your WordPress site. It contains useful shortcuts to different WordPress sections. The shortcuts available in the admin bar change based on a users’ role and permissions in WordPress.

Why you need to Disable WordPress Admin Bar

Often when viewing the public pages on the front-end of your website, the admin bar can be a bit distracting. It may also affect your website’s design and user experience and that is why you need to disable admin bar area.

How to disable Admin Bar Area on WordPress

There are different ways to disable admin bar Area as we have stated above, either with plugins, codes or by default

Admin Bar Area Disable for All Users with a Plugin

There are different plugins you can use to disable admin bar area for users, as I always say on WordPress their is always a plugin to solve your issues, so therefore, their is a plugin to disable admin bar area for users and it is Hide Admin Bar From Front End plugin.

This plugin provides feature to hide/show admin bar from front end.
You don’t need technical skills to solve this.

Search and Install through using WordPress plugin, you can use our guide on how to install plugins on WordPress, activate the plugin through the “Plugins” menu in WordPress.

Manage setting to ‘Hide/Show Admin Bar’ by going WP-admin -> Settings ->Hide/Show Admin Bar.

Enjoy! as there is setting to show/hide in admin. Don’t forget to click on the ‘Save Changes’ button to store your settings.

Admin Bar Area Disable for All Users Using PHP Codes

In adding php codes on WordPress, you need to understand what theme’s functions.php file is, so later you need to add the following code to your theme’s functions.php file

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

Then save, and make sure you clear your WordPress cache before checking through your site.

what does this PHP codes do

This code checks if the current user is not an administrator, and they are not viewing the admin dashboard. If both conditions match, then it will disable the WordPress admin bar.

Disable WordPress Admin Bar for Any User by Settings

WordPress gives all user the opportunity to disable WordPress admin bar by just editing there user profile. As admin, you can edit users profile and disable the admin bar. Just go to the Users » All Users page and then click on the ‘edit’ link for any user you want to disable the admin bar for.

Then the user page editor will pop out, then you uncheck the box next to the ‘Show toolbar when viewing site’ option.
Move down, then, click the ‘Update User’ button to save your changes.

That is all on how to disable the WordPress admin bar for all users except administrators.

If you have any issue on this, you can use our comment session or join our delegate on facebook to solve any issues related to WordPress and subscribe to our YouTube Channel for WordPress video tutorials.

Share this Post

2 thoughts on “Beginner’s Guide on How to Disable WordPress Admin Bar for All Users”

  1. What exactly does this disable? I still see an admin bar and I have access to menu options when I go to when i’m logged into a subscriber account.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
Scroll to Top