Title: selector with multiple classes
Last modified: September 13, 2023

---

# selector with multiple classes

 *  Resolved [atesz03](https://wordpress.org/support/users/atesz03/)
 * (@atesz03)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/selector-with-multiple-classes/)
 * Hi,
 * I often have meow galleries and wp block images on the same page (an example 
   page is linked above). I would like to target both with the lightbox.
 * If I use `.mgl-gallery` in the selector, it works fine for the meow galleries.
   However, if I use `.mgl-gallery, .wp-block-image` instead, the lightbox doesn’t
   load at all. Every image on click will open the media file instead of the lightbox
   if the second option is active.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fselector-with-multiple-classes%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/selector-with-multiple-classes/#post-17049293)
 * Hi [@atesz03](https://wordpress.org/support/users/atesz03/),
 * This definitely works, because the Meow Lightbox does this by default with the
   Meow Gallery, the Images Block, etc. So that should totally work 🙂 Have you 
   checked your Chrome Console, just in case?

Viewing 1 replies (of 1 total)

The topic ‘selector with multiple classes’ is closed to new replies.

 * ![](https://ps.w.org/meow-lightbox/assets/icon-256x256.gif?rev=3004933)
 * [Meow Lightbox](https://wordpress.org/plugins/meow-lightbox/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/meow-lightbox/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/meow-lightbox/)
 * [Active Topics](https://wordpress.org/support/plugin/meow-lightbox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/meow-lightbox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/meow-lightbox/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/selector-with-multiple-classes/#post-17049293)
 * Status: resolved