By default, WordPress may show the admin bar on the frontend to logged-in users. But with some themes or setups, guest users (non-logged-in visitors) might still see the admin bar — especially if you’re using caching, preview modes, or injected templates.
The Hide Admin Bar Based on User Roles plugin makes it easy to completely hide the toolbar for all guest users with just one setting.
Steps to Hide the Admin Bar for Guests #
1. Make Sure the Plugin is Installed #
If you haven’t installed the plugin yet, follow our
👉 Installation Guide
2. Open Plugin Settings #
Go to your WordPress Dashboard:
Settings → Hide Admin Bar Settings

3. Find the Guest Visibility Setting #
Look for this option: Hide Admin Bar for All Guests Users
This setting applies to users who are not logged in.

4. Enable the Option #
- Tick the checkbox next to that setting
- Click Save Changes
Done! Guest users will no longer see the admin bar on the frontend.

Frequently Asked Questions #
FAQs (Hide for Guest Users) #
- Will this affect logged-in users?
No — this setting only applies to non-logged-in (guest) visitors.
- My site still shows the admin bar for guests. Why?
Make sure:
- You’ve saved the setting properly
- You are logged out when testing
- Page cache is cleared (especially if using a caching plugin or Cloudflare)