Exclude specific gallery from using lightbox
-
I have quite a few galleries on my site, and I have one page that is a “master” gallery (contains one image from each of the “sub-galleries” and links to them). All of the aforementioned galleries are implemented using WP’s built-in image/gallery functionality. I’m trying to implement some sort of lightbox on the sub-galleries, so that they open the lightbox when an image in the gallery is clicked, but I want the master gallery to only link to the appropriate sub-gallery.
I’ve tried many, many different gallery and/or lightbox plugins, but I can’t find a single one that lets me exclude a gallery from using lightbox. There are some that do it for individual images using
rel="", butrelcan only be applied to image links, not to the gallery shortcode. I also found several sources that override the actual WP settings (by editing functions.php) to manually addrelto image tags, but this also doesn’t accomplish what I want since it appliesrelto ALL image tags.So, TL;DR, how can I either a) exclude a specific gallery from using lightbox, or b) have lightbox off by default and only enable it for certain galleries?
The topic ‘Exclude specific gallery from using lightbox’ is closed to new replies.