This tutorial is on how are you going to protect certain parts of the post or page in a membership site using s2member. But first, let’s answer, the question, does S2member works on Divi Theme?
The answer is yes. It works seemlessly on Divi at least as far as my trials and evaluation is concern and up to the writing of this post which is April 2020.
Here’s the shortcode used in the video.
[s2If current_user_is(s2member_level1) OR current_user_is(s2member_level2)]
[/s2If]
Basically the shortcode protects 2 levels, levels 1 and 2. If you only want to include 1 level, let’s say level 2, you will use this:
[s2If current_user_is(s2member_level2)]
[/s2If]
Alternatively, if you want to protect the entire post, you will have to use the sidebar settings on the post as shown in the image below:
There are some other scenarios that we can do in using s2member. It’s one of the most extensive and robust to features membership plugins out there. It is not as easy to use, but it’s definitely one of the best giving you a lot of flexibilities on your membership status.