- This topic has 1 reply, 2 voices, and was last updated 2 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- The forum ‘How do I …’ is closed to new topics and replies.
Events Made Easy › Forums › How do I … › Add #_MEMBERSHIPNAME as body class…
Tagged: #membershipname, body, class
I know someone has asked for category to be added and you mentioned making a custom page template for that. However, I think the need is still there, at least in regards to memberships.
For instance, I would love to have my site only show certain nav items to folks within a certain membership. Since we can’t specify which wp capabilities to give new users from a membership standpoint, this is the next best thing as we would then be able to hide elements based on a body class.
You can use the eme_if shortcode together with #_IS_USER_MEMBER_OF{xx} so you can hide stuff in your pages. Also, class=”#ESC_MEMBERSHIPNAME” can be added to any html element of choice, so I’m not really sure what is missing here 🙂