How to Hide or Remove the WordPress Toolbar on Your Website for Good
WordPress automatically displays a toolbar at the top of the page when you’re logged in. Whether you’re using your site in the backend or checking it out on the front-end, the toolbar is always there – and for many it’s really annoying.
For developers, the toolbar can slightly throw off a theme’s design, especially if you have some CSS styling that may not be visible with the admin bar in the way. For others, the toolbar is simply distracting.
Either way, it’s easy to disable the toolbar. Here are a few quick ways to hide it.
1. Turn Off the Admin Toolbar in Settings
To remove the toolbar from your site, go to Users > Your Profile. Scroll down to “Toolbar” and uncheck “Show Toolbar when viewing site.”
And that’s all you need to do. The toolbar will no longer appear on your site… only on the front-end, that is. The toolbar will continue to display on the backend of your site.
Since the toolbar displays useful information, such as quick links to the front-end of your site, creating new posts and pages, and to access your profile, it’s best to leave this particular toolbar as is – it does contain important information about your site, after all.
2. Remove the Admin Toolbar with Code
If you would rather remove the toolbar completely with code, just drop the following snippet into your functions.php file:
This code will stop the toolbar from displaying on the front-end of your site.
It’s a good idea to create a child theme if you’re planning to implement this method rather than edit your raw functions.php file. If you’re not sure how, or need a refresher, check out our comprehensive guide How to Create a WordPress Child Theme.
3. Remove the Admin Toolbar with a Plugin
If you don’t want to muck around with code, your best option is to use a plugin.
One of the most popular options in the WordPress Plugin Directory is WP Admin Bar Removal. It’s a simple plugin that, once installed and activated, automatically hides the toolbar on the front and backend of your site. It even removes the toolbar option on your user profile page.
Did you try out this tweak on your site? What other tweaks have you made to your install to customize WordPress to suit you? Let us know in the comments below.