WordPress Simple Membership Hide Adminbar shows you how to hide the adminbar from the website front-end for members, admin and more.
Last Updated: October 4, 2021
Latest News: Updated the documentation.
The following documentation will show you how to hide or show the adminbar in your membership site. These instructions will help you manage the adminbar for members who log in via Simple Membership login widget. In some cases this can be confusing for non Admin members who are not interested in accessing the WordPress Admin Menu. Most members are only interested in viewing the protected content and also have access to their profile to make changes. However in some membership sites, the adminbar may play an important role. The good news is that Simple Membership plugin gives you the control to manage who has access to the adminbar or not when they log in.
Note: The admin menu is displayed if you don’t have the following feature Hide Adminbar enabled. If you have the following feature Show Adminbar to Admin enabled and the member is not an admin member, they will not see the adminbar menu.
What You Need:
- Simple Membership plugin.
- (Optional: Documentation you might want to read how-to-deal-with-the-common-challenges-of-a-membership-site)
- (Optional: You might be interested in the following documentation adding-a-terms-and-conditions-and-privacy-policy-to-member-registration-page.)
WordPress Simple Membership Hide Adminbar
Step 1 ) First go to WP Membership -> Settings as illustrated in the following image to manage the following options. Make sure you play around with these options to understand further how they work because each option play a different role.
Hide Adminbar Options:
- Hide Adminbar = This hides the adminbar for all members.
- Show Adminbar to Admin = This allows only the administrators to see the adminbar.
- Disable Access to WP Dashboard = Note: Enable this feature if your wp dashboard is displayed when a member navigates to another tab in the same browser while logged in as a non admin member.
Note: Each feature above allows you to hide or show the adminbar and or wp dashboard for members or admin members. Remember that when members sign up, they are assigned to a Membership Level. Each membership level is assigned to a wp user role.
Step 2 ) The following image shows you the adminbar displayed on the top when members log in. The adminbar is displayed when members log in whether they have admin privileges or not.
Note: Each member is assigned a membership level with a WP user role assigned.
Step 3 ) The following image shows you the website when a member logs in without the adminbar displayed. This is a much cleaner login process for members and less confusing. This is achieved when you enable the following option Hide Adminbar mentioned in Step 1 ) above.
Show Adminbar to Administrators
Step 4 ) The following image shows you the website Adminbar displayed to an admin member logged in via Simple Membership login widget.
In this example only members with admin privileges will see the wp dashboard. This is achieved when you enable the following option Show Adminbar to Admin mentioned in Step 1 ) above.
Disable Access to WP Dashboard
Step 5 ) The following image shows you the message displayed when a WP user logs into your site. This happens when the following feature is enabled Disable Access to WP Dashboard mentioned in Step 1 ) above. When a member logs in and tries to view the WP Dashboard, they will also see the following message. However the member will still have access to the protected content and their profile.
Q1 How do I allow other members to have access to the adminbar?
Solution 1: Someone posted a solution in the forum post. Check the following link forum post to learn more.
Q2 Can I use custom roles for backend access?
Solution 1: No. Our plugin won’t work with custom roles for this feature unfortunately. This feature can only work with the standard/default roles of WordPress. Check the following link forum post to learn more.
If you have any questions please let me know. I will be updating this tutorial from time to time.
Simple Membership Plugin Tutorial List: