How to remove WordPress dashboard tool bar from users profile

How to disable WordPress tool bar from any users manually

In this tutorial, I will show you simple steps on how you can finally remove WordPress admin tool bar from the users side which most times distract users navigating easily on your website and this might lead to high rate of website bounce back.

See picture screenshot of how WordPress admin tool bar looks like;

image

There are steps on how you can disable this from the users side;

I. By doing it manually from your WordPress admin side, this process is recommended for website with few numbers of users;

Login to your WordPress admin, go to the left side dashboard menu, look for ”USERS” select all users

image 1

After that, click on edit, it will show you options settings for the user, scroll down to where you have the tool bar and disable it.

image 3

Done. If you login to this user dashboard, the WordPress top tool bar won’t be found there anymore.

How to disable WordPress tool bar from all users profile except the admin

If you have large numbers of registered users, doing this will be stressful, we recommend the below guide to enable you disable WordPress admin tool bar from all the users except ADMIN.

Install WPCode plugin and activate it. After that open the plugin and go to Add your custom code snippet

image 4

Then go to the drop button and select PHP Snippet and after you need to add the following code in code preview side;

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

image 6

After that scroll down and keep this part Auto Insert, this will automatically insert the code where it supposed to be.

image 7

After that, Active and save the Snippet.

image 8

This should solve the issue, you can as well check your changes to be sure it works perfectly.

Leave a Comment

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

OPLEVELSEN