WEBFI-WordPress-How to Disable WordPress Admin Bar for All Users Except Administrators
Do you want to disable the WordPress admin bar for any or specific users on your site? WordPress has a method for manually disabling the admin bar per user but that is not feasible if you have a lot of registered users on your site. In this article, we’ll show you how to disable the WordPress admin bar for all users except administrators.
This video brought to you by SeedProd, the best WordPress landing and page builder plugin available, take a look at their site here:
=================================
https://www.seedprod.com/
=================================
For our discount use the code: WPBVIP
There are a few different methods to do this and for the first option, we would recommend going under Users, All Users and click on edit beneath the user you want to hide the admin bar from. You should scroll down and in the options, there will be the Toolbar option to show the toolbar when viewing the site and uncheck it.
To limit the admin bar based on user role, you would want to install and activate the Hide Admin Bar Based on User Roles plugin. Under Settings, Hide Admin Bar Settings you can check the box next to the role where you would like to hide the admin bar. The plugin download link can be found below.
https://wordpress.org/plugins/hide-admin-bar-based-on-user-roles/
For our other methods, we have the code written in our article where you can copy it from and the link to that article is below.
For the added code, you would need to go under Appearance, Theme Editor, and find the functions.php file also titled theme functions. Scroll to the bottom and add the code from the article. The first code will disable the code for all users except the admin while the second code will disable it for everyone.
If you liked this video, then please Like and consider subscribing to our channel here for more WordPress videos.
https://www.youtube.com/subscription_center?add_user=wpbeginner
Feel free to take a look at the written version of this tutorial here:
https://www.wpbeginner.com/wp-tutorials/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators/
Join our group on Facebook
https://www.facebook.com/groups/wpbeginner
Follow us on Twitter
http://twitter.com/wpbeginner
Check out our website for more WordPress Tutorials
http://www.wpbeginner.com
#WordPress #WordPressTutorial #WPBeginner
source
Great video, subscribed. You have an article listed here: https://www.wpbeginner.com/plugins/how-to-create-a-product-catalog-in-wordpress-without-a-shopping-cart/ that shows how to use WooCommerce without the Buy and Add to Cart options. This is what I'm looking for except I want to be able to add my own FastSpring "Add to Cart" and "Buy" buttons … is this possible with the approach you outlined?
Hats off to your dedication for producing such high quality videos!
Can you explain how a website is developed, I mean some people develop PHP file some develop SQL some JSON the how are the assembled in a company?
Who assembles it ,the CEO ?
And how do the stop employees from stealing the scripts ?
Thanks! This helped a lot!
Do you know if there is a way to display the name of who reviews an article? Just like in healthline's posts, where they show who wrote the article and who reviewed it. Thank you!!
Can i see my wordpress website logginers information like id and password
Rather than hide complete bar – how do I hide/show/add specific links people see in admin toolbar for different user roles?
Thanks, the custom code worked.
Thank you so much
Admin bar is still available
Clean tutorial, for me the plugin was way easier to use than anything else.
Thanks,
weird none of them worked for me.
Thank you. Thank you. Thank you. 🙏. I needed this and you made my day.
Thanks a lot
Hi, could you please help me..
now my problem all of user role except administrator can't view the dashboard…
please how to solve ?
Thanks a lot…It worked
Tanks ❤❤
The plugin doesn't seem to be working for me. I've cleared cache on browsers and tried using private mode and the admin bar still shows up. Any advice?
Thanks team!
I'm getting only profile options on my site (After logging in the dashboard)…how to get back all the options in the WordPress dashboard?? can you please let me know.
Really helpful for me Thanks for sharing
Thanks! it really was annoying!
Thank you so much, this video helped me!!
Thank u soooo much best video for hiding admin bar from pakistan
hide admin bar. easy as pie