How to Hide WordPress Admin Toolbar for Users

WordPress is one of the richest content management systems on the web. It really a smart and advanced CMS. There are a lot of default settings on WordPress. Some settings are really useful some are not. WordPress allows you to change, hide, remove some of the settings that are not very much important for you and your users. When you log into WordPress it automatically displays a toolbar at the top of the page. Here I will show you how to hide WordPress admin toolbar?

How to Share Blog Posts Automatically on Social Media

Some people don’t like this toolbar so they want to disable WordPress admin bar. Sometimes it may be disturbing because when browsing your site it is always with you. So if you want to hide this toolbar then you need to know how to hide WordPress admin toolbar. This article will help you that you can do it properly.

How to Add Facebook Video in WordPress Site or Blog

Before removing admin toolbar you should remember that this toolbar contains some useful options of your site such as quick links to your posts, pages, your profile and some valuable information. If you still want to disable this I will show you how to hide WordPress admin toolbar?

Top 100 Best WordPress Related Sites

How to Hide WordPress Admin Toolbar

There are different ways to disable WordPress admin bar for users. Here some of the best ways to do it.

How to hide WordPress admin toolbar: From your Settings

Sign in to your WordPress Dashboard. Then click on Users >> Your Profile.

How to hide WordPress admin toolbar

Now uncheck the option Show Toolbar when viewing site. Finally, click on Update Profile.

How to hide WordPress admin toolbar

How to hide WordPress admin toolbar: Using plugin

There is an easy way to disable WordPress admin bar for users. Just install and activate WP Admin Bar Removal. Then it will automatically hide your toolbar.

Disable admin bar for all users, not administrator: Using code

Copy the below code and paste the code into functions.php file of your theme.

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

Disable admin bar for all users

You can disable admin toolbar for all the users. Just copy and paste the below code into your theme’s functions.php file.

/* Disable WordPress Admin Bar for all users but admins. */
show_admin_bar(false);

That’s all. I hoe you have done.

Munna Hossain
 

Hello, I am Munna Hossain. I am a professional blogger and affiliate marketer. I am interested in technology, blogging, SEO, and WordPress. My blog Mytechgoal provides you all information about technology, blogging, SEO, and affiliate marketing.

Click Here to Leave a Comment Below 7 comments