Over 10 years we help companies reach their financial and branding goals. Engitech is a values-driven technology agency dedicated.

Gallery

Contacts

411 University St, Seattle, USA

engitech@oceanthemes.net

+1 -800-456-478-23

WordPress
How to Hide WordPress Admin Bar

When users login to their WordPress sites, there is an admin bar on the top of the screen. This bar is accessible to users only. Admin bar lets developers navigate to the admin area easily. As a result, they can easily make edits to their WordPress site such as adding new posts, pages, updating themes etc. Sometimes, multiple users are accessing your WordPress site as a viewer or editor. This increases the chance of hacking your WordPress site by breaking the admin password from the admin area. Therefore, it is necessary to protect your site by disabling the WordPress admin bar. Moreover, the hidden admin bar makes the front page look more comprehensive to users.

It is possible to hide the admin bar for customized users or for all users except admin. Moreover, you can also grant access to specific categories of admin areas to certain users. There are numerous ways to hide WordPress plugins including:

  1. Hide WordPress admin bar via the Dashboard
  2. Disable WordPress Admin bar using plugin
  3. Remove WordPress Admin Bar by applying Code

If you are not an expert, we recommend creating a backup for your WordPress site before hiding the admin bar. This precaution will just save you from any inconvenience in case you find it difficult to re-access the admin bar in the future.

1. Hide WordPress Admin Bar Via The Dashboard

Hiding the Admin Bar using your WordPress Dashboard is the most easy and swift method. You can do it in the following steps.

  • Open the WordPress website and navigate to admin Dashboard.
  • Click Users and then choose All Users option.
  • A list of all user profiles you have created for your website will appear. Select the user you want to hide from, or select all users depending on your preferences.
  • Now uncheck the users you want to hide the toolbar from.
  • Click Update Users. Now the admin bar will be hidden from the selected user profiles.

If you want to hide the admin bar for yourself, you can do the hiding admin bar process in Your Profile area by unchecking the Show Toolbar when viewing the site box and then click Update Your Profile. The admin bar will be hidden from your page.

2. Disable WordPress Admin Bar Using Plugin

If you plan to hide the admin bar from all users, you can do it in a more handy way by simply using a plugin. By installing a plugin, you don’t need to hide the bar manually for all users. For this purpose, you can install the following Plugins.

  • Hide Admin Bar Plugin
  • Admin Bar Disabler

Disable Admin Bar Using Hide Admin Bar Plugin

This Plugin has more than 40000 installations and comes with 4.5 stars on wordpress.org due to its user-friendly interface nature. You can remove admin bar using the Hide Admin Bar Plugin from the following method.

  • Open the WordPress dashboard.
  • Navigate to Plugins.
  • Click Add New and search for Hide Admin Bar Plugin.
  • Click Install.
  • The plugin starts downloading automatically. Wait for a few minutes.
  • Now click Activate. 

Hide Admin Bar Plugin

  • Once the plugin is installed and activated, then move towards the Settings.
  • Click Hide Admin Bar Settings
  • You will see two options. One for hiding for all users and one for hiding all guest users. Choose the one according to your preference. 

Hide Admin Bar Plugin Settings

The administrator and editor will keep seeing the bar. If you want to remove the admin bar for user roles, then from the Settings, you can perform this task. Once you are done click Save Changes.

 Disable Admin Bar Using Admin Bar Disabler

Admin Bar Disabler Plugin is also a very functional plugin which lets you not only hide admin bar for all but also white list or black list certain user roles. You can install and activate this plugin from WordPress. For this purpose

  • Open the WordPress dashboard.
  • Navigate to Plugins.
  • Click Add New and search for Admin Bar Disabler Plugin.
  • Click Install.

Admin Bar Disabler Plugin

  • The plugin starts downloading automatically. Wait for a few minutes.
  • Now click Activate.
  • Once the plugin is installed and activated, then move towards the Settings.
  • Click Admin Bar Disabler.

Admin Bar Disabler Plugin Settings

From there you can blacklist or whitelist certain roles or simply click Disable toolbar for everyone. Now click Save Changes.  The toolbar will be hidden from users.

3. Remove WordPress Admin Bar By Applying Code

If you are a coding expert, you don’t need to download any plugin or use any manual method to remove the admin toolbar. You can simply add code and the toolbar will be hidden automatically. You can add code for the following:

Removing Admin Bar by Code

  • Disable toolbar for all users. The code for this function is
add_action('after_setup_theme', 'remove_admin_bar');
function remove_admin_bar() {
if (!current_user_can('administrator') && !is_admin()) {
  show_admin_bar(false);
}
  • Disable toolbar for everyone except users with administrative privileges. The code for this function is
/* Disable WordPress Admin Bar for all users */

add_filter( 'show_admin_bar', '__return_false' );

Final Thoughts: 

Now you have learned how to hide the toolbar from the front page, you won’t be bothered by it anymore. You will no longer be worried about the security of your page while  giving access to multiple users.

The toolbar is functional but sometimes it obstructs performing simple tasks like making edits to your pages. You can hide it or make it operational again by removing the plugins or codes you used to make the toolbar hide. 

Leave a comment

Your email address will not be published.