You can show or hide HTML elements, menus, and other details based on user’s enrollment in LearnDash course.
You can show or hide HTML elements, menus, and other details based on user’s status like logged in or logged out.
You can show or hide HTML elements, menus, and other details by checking user’s access to a particular LearnDash Group.
You simply need to add a CSS class to your element div or span.
As explained here, if Course or Group ID is 123
Add this CSS class: visible_to_logged_in OR hidden_to_logged_out
Add this CSS class: visible_to_logged_out OR hidden_to_logged_in
Add this CSS class: visible_to_course_all
Add this CSS class: hidden_to_course_all
Add this CSS class: visible_to_course_none
Add this CSS class: hidden_to_course_none
Add this CSS class: visible_to_course_123
Add this CSS class: hidden_to_course_123
For users with access to at least one course, add this CSS class: hidden_to_course_none
Add this CSS class: visible_to_group_all
Add this CSS class: hidden_to_group_all
Add this CSS class: visible_to_group_none
Add this CSS class: hidden_to_group_none
Add this CSS class: visible_to_group_123
Add this CSS class: hidden_to_group_123
For users with access to at least one group, add this CSS class: hidden_to_group_none
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.