• Resolved gjefle

    (@gjefle)


    I love how this lightbox looks, but it’s just too much work since 99% of the time I want the lightbox to work ONLY with galleries and NEVER with other images. Trying to get the class or IDs for every single image is just too much – is there some way to exclude all images except for those in WP galleries? Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • In Meow Lightbox settings, there’s a slot for selector and anti-selector. I put only “.mgl-gallery” (without the quotes) in selector and leave anti-selector blank.

    If you don’t use Meow Gallery, you’ll have to find the class selector used by your gallery. This should be all you need – the selector tells Meow Lightbox to only work on gallery images. No need to use the anti-selector in your use-case.

    Thread Starter gjefle

    (@gjefle)

    AWESOME! Thanks Joe Fry – that’s exactly what I was wanting – SOLVED! It would be nice for the author to build in a option to use it only for galleries but since I use the Meow Gallery on all my websites, this works and I’m very grateful! Thanks again Joe!

    You’re welcome, happy to help.

    I suspect Jordy would agree that good simple design philosophy means not creating needless design dependencies. Thus, the Lightbox can’t, and shouldn’t see what is “outside” of each particular image. In this case, it’s Meow Gallery, but it could be any gallery. Or it might not be a gallery, it might be a certain type of page, or section, or anything.

    So, setting up a simple trigger-mechanism in this way lets you choose where it operates.

    To complete the logical circle…
    The anti-selector could be used if you wanted a certain gallery not to be lightboxed. You’d have to determine a unique identifier for that gallery and put that class name in the anti-selector slot.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable for ALL images EXCEPT galleries’ is closed to new replies.