So far as you’re logged into your WordPress Dashboard, the WordPress Admin Bar will always show up at the top no matter which page you’re on and this can be quite annoying for WordPress users who aren’t Admins.
In this article, I’ll guide you through the fast steps you need to take to disable, hide or remove the WordPress Admin Bar for all Users easily.
There are two ways to hide, disable or remove the WordPress Admin Bar, either you use the Theme Editor or the File Manager in your Hosting account.
How to Hide / Disable WordPress Admin Bar using the Theme Editor
To access your Theme Editor’s page, go to Appearance > Theme Editor or Editor as the case may be. Use the Right Navigation panel to find and click on the functions.php file, then paste the code below into the editor:
add_filter(‘show_admin_bar’,’__return_false’);
After lasting in the code above, Click on Update File to save Changes and the clear cache on Cloudflare, Ezoic, or any Caching Plugin you may be using, and then access your website while you’re logged in.
The World Admin Bar should now be gone and any theme error or complaint you may be getting due to it should now come to an end.
Using this method, the admin bar will appear in your WordPress Dashboard (backend of your site), but let’s proceed to the next method.
How to Hide WordPress Admin Bar using File Manager
You can also hide, or remove the WordPress Admin Bar from File Manager found in your Hosting Account, here’s how to do it.
To Hide WordPress Admin Bar using File Manager, use this route Cpanel > File Manager > WP Content > Themes > Your WordPress Theme, the theme currently active on your site should be opened.
Then open the functions.php file and paste it into the code which I added earlier in this article, every theme has a functions.php file but the route to get to it via your Hosting account may be different.
For all my tutorials that involve WordPress CPanel, I use Hostinger and Bluehost, this is because their CPanel is nice and easy to navigate compared to others.
Do note that you can also use FTP to disable your WordPress Admin Bar if that’s what you’re more comfortable with, the idea is to get to your theme’s functions.php file and paste the code below:
add_filter(‘show_admin_bar’,’__return_false’);
Final Thoughts
I hope that you’ve been able to learn how to remove WordPress Admin Bar for all Users on your Site, remember to share this article on social media and forums where WordPress users are to help support this site.
If you have any questions on how you can hide your WP Admin Bar easily, feel free to talk with me in the Comments, so I can answer them.