Title: Multiple Classes Bug
Last modified: February 25, 2021

---

# Multiple Classes Bug

 *  [aussiedigitalnomad](https://wordpress.org/support/users/aussiedigitalnomad/)
 * (@aussiedigitalnomad)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-classes-bug/)
 * Hi,
    I think there is a bug in the plugin…
 * I have 4 courses, each lesson in the course might refer to a number of resouce
   pages which are relevant to the lesson
 * So, numerous courses need access to the same resource page.
 * To reproduce, I have course #1, #2, #3, #4
    Pages W, X, Y and Z All Courses can
   see Page W Course #2 and Course #3 can see Page X Course #2, Course #3 and Course#
   4 can see Page Y Only Course #4 can see Page Z
 * Each page consists of 2 elements an inner section element with text to say “No
   Access” and the other one being an inner section element with all the Page Content
   inside
 * So, for Page Y, I have…
    Element 1: “Sorry, you don’t have access” with class“
   hidden_for_course_2 hidden_for_course_3 hidden_for_course_4” Element 2: The page
   content with the opposite class is “visible_for_course_2 visible_for_course_3
   visible_for_course_4” (note: they won’t be enrolled in all 3, just one course)
 * When I test as a user under each course, Element 1 always works, whereas Element
   2 is not showing any time

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Saurabh Chauhan](https://wordpress.org/support/users/saurabhpro/)
 * (@saurabhpro)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-classes-bug/#post-14104654)
 * Hi,
 * Example: visible_to_course_123 visible_to_course_456
    This element will be visible
   only to users who have access to both courses.
 * Learn more from this similar thread: [https://wordpress.org/support/topic/add-multiple-css-classes-to-elementor-widget/](https://wordpress.org/support/topic/add-multiple-css-classes-to-elementor-widget/)
 *  Thread Starter [aussiedigitalnomad](https://wordpress.org/support/users/aussiedigitalnomad/)
 * (@aussiedigitalnomad)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-classes-bug/#post-14105210)
 * Thanks, but as I said the users will not be enrolled in all the courses.
    So,
   it looks like having an element appear for any of the courses can’t be done with
   the plugin

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multiple Classes Bug’ is closed to new replies.

 * ![](https://ps.w.org/visibility-control-for-learndash/assets/icon-256x256.png?
   rev=2146785)
 * [Visibility Control for LearnDash](https://wordpress.org/plugins/visibility-control-for-learndash/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/visibility-control-for-learndash/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/visibility-control-for-learndash/)
 * [Active Topics](https://wordpress.org/support/plugin/visibility-control-for-learndash/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/visibility-control-for-learndash/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/visibility-control-for-learndash/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [aussiedigitalnomad](https://wordpress.org/support/users/aussiedigitalnomad/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/multiple-classes-bug/#post-14105210)
 * Status: not resolved