Blog

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.

https://www.wpbeginner.com/wp-tutorials/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators/

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

24 Comments

  • Robin Ainscough on February 17, 2021

    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?

  • Plerdy - CRO&SEO Tools on February 18, 2021

    Hats off to your dedication for producing such high quality videos!

  • VRUGE POST on February 20, 2021

    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 ?

  • LMSftw on February 21, 2021

    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!!

  • KAMARU on February 27, 2021

    Can i see my wordpress website logginers information like id and password

  • Edward Bonthrone on March 19, 2021

    Rather than hide complete bar – how do I hide/show/add specific links people see in admin toolbar for different user roles?

  • Learn Jamaica on April 5, 2021

    Thanks, the custom code worked.

  • Rajendra bogati on April 29, 2021

    Thank you so much

  • Ranjit Barnala on April 30, 2021

    Admin bar is still available

  • Gamerinos on May 1, 2021

    Clean tutorial, for me the plugin was way easier to use than anything else.
    Thanks,

  • Ritchie Baldonado on May 7, 2021

    weird none of them worked for me.

  • Sean Snider on May 12, 2021

    Thank you. Thank you. Thank you. 🙏. I needed this and you made my day.

  • Hardik Sharma [JEE] on June 20, 2021

    Thanks a lot

  • Kobbom on June 23, 2021

    Hi, could you please help me..
    now my problem all of user role except administrator can't view the dashboard…

    please how to solve ?

  • Debasish Rath on June 25, 2021

    Thanks a lot…It worked

  • Model Business on June 29, 2021

    Tanks ❤❤

  • Anya Camins on July 26, 2021

    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?

  • Rahul Kesharwani on August 8, 2021

    Thanks team!

  • Shagul Smiles on August 23, 2021

    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.

  • Habibullah hk on September 1, 2021

    Really helpful for me Thanks for sharing

  • Pedro García on September 8, 2021

    Thanks! it really was annoying!

  • SinSan Gaming on October 24, 2021

    Thank you so much, this video helped me!!

  • saba sajid on October 24, 2021

    Thank u soooo much best video for hiding admin bar from pakistan

  • Christopher Raymond-Castro on November 30, 2021

    hide admin bar. easy as pie

WhatsApp us
Live Chat

Office hours operation Mon-Sun 8:00 am ET – 4:00 pm ET

To start your Premium WP or Cpanel service, use our domain search engine, if the domain you want is available, contact us by Whats app to activate your project.

The easiest, fastest, and most secure way to communicate with us.
loading
Please enter your domain.
Please verify that you are not a robot.

Terms Privacy

 

 

WEBFI NETWORK OFFICE HOURS 

Mon-Sun from 8:00 am /4:00 pm USA-ET

WhatsApp us

Small Business – WordPress – CPanel – Hosting

© Webfinet Affordable Private Small Business Solutions All Rights Reserved 2021 - Powered By WEBFINET.com
error: WEBFINET SECURITY IS ON