WordPress – How to Remove Toolbar for All Users Except Admins

remove wordpress toolbar

Sometimes you mat get stuck with admin bars on your site. This can be due to some plugins like BuddyPress. If there are toolbars displayed to your users whether they are logged in or not, you can get rid of it by inserting the simple code below into your functions.php. Note: Always use child themes for your theme modifications otherwise you will risk losing those changes in case of a theme update.

Here is the code:

Hope this helps.
Good Luck,

Leave a Reply

Your email address will not be published. Required fields are marked *