MemberPress is one of the most popular and comprehensive membership plugins for WordPress and this is what we use here at BricksLabs and our other membership sites to create membership plans, take payments and serve protected content to paying members.
This Pro tutorial aims to be a useful resource for using MemberPress in Bricks sites.
- Render elements that have a class of
members-onlyonly to members that have a specific membership or memberships.
- Styling the login and sign-up forms (coming soon)
- Making the sign-up forms on a custom membership page like our membership page work properly (coming soon)
- Custom condition to render elements based on membership ID(s) (coming soon)
Render elements that have a class of
members-only only to members that have a specific membership or memberships
Content from the block editor is automatically protected by MemberPress.
If your Page Bricks template is set to also show Bricks content (as it should), note that out of the box it will be visible to everyone and not just to the members that should have access to it per one or more MemberPress rules.
After adding the following code, you could simply add
members-only class for any element at its STYLE → CSS → CSS classes and that element will be output only for members that are set to have access to this Page.
This is a BricksLabs Pro tutorial.
For full access login below or create your BricksLabs Pro account