### [How to Disable Admin Bar in WordPress (2 Simple Methods)](https://wpcode.com/how-to-disable-admin-bar-in-wordpress/)

**Published:** October 8, 2025
**Author:** Aazim Akhtar

**Content:**

When I first started managing WordPress websites with multiple authors, I noticed something that bothered me. Every writer and contributor who logged in would see that black admin bar at the top of every page when viewing the site, cluttering up what should be a clean, professional website experience.

The admin bar serves a purpose for website administrators who need quick access to dashboard functions. But for most users visiting your site, including your own content contributors, it creates unnecessary visual clutter.

After testing different approaches across various client sites, I’ve found that disabling the admin bar creates a much more professional presentation. Plus, it keeps your site safe from unauthorized access to admin settings.

In this guide, I’ll show you how to disable admin bar on the frontend in WordPress using 2 simple methods.

## Why Disable the Admin Bar in WordPress?

The WordPress admin bar is that black horizontal toolbar that appears at the top of your website when you’re logged in.

It contains quick links to your dashboard, profile settings, and other WordPress administrative functions.

![Admin bar in WordPress](https://wpcode.com/wp-content/uploads/2025/09/admin-bar-in-wordpress.png)

Now, you must be thinking, why disable it?

The admin bar creates visual noise that most website visitors shouldn’t see. For example, when I’m working with multi-author sites, I’ve learned that only administrators truly benefit from having quick dashboard access while browsing the frontend.

Content creators, editors, and contributors don’t need to see WordPress backend links while they’re reviewing published articles.

I’ve also noticed that the admin bar makes websites look unfinished to clients and stakeholders. During website presentations, that black toolbar immediately signals that there is work in progress, rather than give a professional online presence.

For membership sites or client portals, the admin bar can confuse users who don’t need backend access. They might click on dashboard links they don’t understand, leading to frustration and support requests.

That said, let’s look at how you can easily disable the admin bar for individual users and for all non-admin users. You can click the links below to see your preferred section:

- [Method 1: Disable Admin Bar for Non-Admin Users (Recommended)](#aioseo-method-1-disable-admin-bar-for-individual-users)
- [Method 2: Disable Admin Bar for Individual Users](#aioseo-method-2-disable-admin-bar-for-individual-users)

## Method 1: Disable Admin Bar for All Logged-In Users

If you’re looking to disable the admin bar for all logged-in users, then the best solution is to use [WPCode](https://wpcode.com/ "WPCode"). It is the [best code snippet plugin for WordPress](https://wpcode.com/best-wordpress-code-snippets-plugins/ "5 Best WordPress Code Snippets Plugins (Compared For You)") and offers a pre-built snippet that will hide the WP admin bar at the top of your site on the frontend.

With WPCode, you can easily insert custom [code snippets](https://wpcode.com/features/code-snippets-library/). Whether it is PHP, [JavaScript](https://wpcode.com/how-to-add-javascript-to-wordpress-pages-or-posts/ "How to Add JavaScript to WordPress Pages or Posts"), [CSS](https://wpcode.com/how-to-add-custom-css-to-your-wordpress-site/ "How to Add Custom CSS to Your WordPress Site (4 Ways)"), HTML, or any other format, the plugin makes it super simple to add, manage, and edit them from a single place. The best part is that your custom [snippets remain intact when you change](https://wpcode.com/how-to-change-font-wordpress-css-snippet/) or update your website theme.

**Note:** I’ll use the [WPCode Lite](https://wordpress.org/plugins/insert-headers-and-footers/ "WPCode Lite") version, which is available for free and includes the snippet for disabling the admin bar. However, if you want more advanced features like code revisions and AI snippet generator, then I highly recommend upgrading to [WPCode Pro](https://library.wpcode.com/pricing "WPCode Pro").

First, you will need to install the WPCode plugin by navigating to the **Plugins » Add New** page from your WordPress dashboard. Then, in the search box, you can type ‘WPCode’ and look for the plugin.

![Install WPCode lite version](https://wpcode.com/wp-content/uploads/2024/09/install-wpcode-1-1024x436.jpg)

After that, go ahead and click the ‘Install Now’ button and activate the plugin once the installation completes. For more details, please see this guide on [how to install a WordPress plugin](https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/ "How to Install a WordPress Plugin – Step by Step for Beginners").

Once the plugin is active, you are ready to [add a custom code](https://wpcode.com/how-to-add-custom-code-in-wordpress/ "How To Add Custom Code In WordPress (Safely For Free)") to remove the WordPress admin bar menu.

Simply go to **Code Snippets » Add New** from your WordPress dashboard. Here, you will need to navigate to the ‘Disable The WP Admin Bar’ snippet. You can also use the search bar on the right to look for the snippet.

![Select disable admin bar snippet](https://wpcode.com/wp-content/uploads/2025/09/select-disable-admin-bar-snippet.png)

Next, the [snippet will be preloaded in the code](https://wpcode.com/what-is-a-code-snippet-wordpress/) editor.

Here, you can make further changes to the code if you want.

![View disable snippet in code editor](https://wpcode.com/wp-content/uploads/2025/09/view-disable-snippet-in-code-editor.png)

From here, you can scroll down to the ‘Insertion’ section to see where the [code will be inserted](https://wpcode.com/new-easily-insert-code-snippets-anywhere-on-your-wordpress-site/) on your site.

WPCode will automatically execute it everywhere on your WordPress website.

![Insert and run code everywhere](https://wpcode.com/wp-content/uploads/2025/04/insert-and-run-code-everywhere.png)

Next, you can [scroll back to the top](https://wpcode.com/how-to-add-a-scroll-to-top-button-in-wordpress/) and click the toggle to make the snippet **Active**.

Once that’s done, simply click the ‘Update’ button.

![Activate disable wp admin bar snippet](https://wpcode.com/wp-content/uploads/2025/09/activate-disable-wp-admin-bar-snippet.png)

Now, when any logged-in user visits your website, they won’t see the admin bar on the frontend.

## Method 2: Disable Admin Bar for Individual Users

Now, you can also disable the admin bar for individual users. This method is great if you only have a few users and want to hide it for specific user roles.

However, if you have a lot of users on a multi-author site, then I recommend using the first method.

To start, you will need to go to **Users All User**s from the WordPress dashboard and select the user for whom you’d like to disable the admin bar.

![Select the user profile](https://wpcode.com/wp-content/uploads/2025/09/select-the-user-profile-.png)

On the next screen, you will see different options to manage a user profile in WordPress.

Simply scroll down to the **Toolbar** option and uncheck the ‘Show Toolbar when viewing site’ option.

![Disable admin for users](https://wpcode.com/wp-content/uploads/2025/09/disable-admin-for-users.png)

From here, you can save the settings and the admin bar will not appear for the selected users. Now, repeat this process to hide the toolbar for other users on your website.

That’s it! The WP admin bar will be hidden for the specific users when they view your site while logged-in.

I hope this article helped you learn how to disable admin bar in WordPress using 2 simple methods. You may also want to see our guide on [how to add Google Analytics to WordPress](https://wpcode.com/how-to-add-google-analytics-to-wordpress/ "How to Add Google Analytics to WordPress (Free Way)") and [how to add a countdown timer in WordPress](https://wpcode.com/how-to-add-a-countdown-timer-in-wordpress/ "How to Add a Countdown Timer in WordPress (3 Easy Ways)").

If you need help, then feel free to leave a comment below. And don’t forget to follow us on [X (formerly known as Twitter)](https://twitter.com/wpcodelibrary "Follow WPCode on X Today") and subscribe to our newsletter for all the latest updates.

**Categories:** Informational

**Tags:** admin bar, code type, custom code, custom code library, disable admin bar, disable admin bar for individuals, disable toolbar option, logged in users, media library, smart conditional logics, WordPress Users, wpcode

---

