I believe this is due to Jetpack gallery pointing to the image page rather than the image.jpg files themselves. Can you confirm?
Hi! Just wanted to acknowledge I’ve seen this. I need to re-check what we may be doing (or not) to handle Jetpack galleries. I’m fairly sure this was working without special integration in the past. If it’s not working now, I’ll definitely want to fix it. We want to be compatible with Jetpack galleries.
@le-tom – I just tested this against Jetpack tiled galleries. I think that’s what you are using. It is working fine for me in both free and pro versions. Images open in the lightbox. A few caveats and notes:
- For it to work, you need to be sure that in the Jetpack gallery settings, you set the image to link to the media file. That may be what @ljosh was referring to above.
- By default, once you do the above, each image will open in the lightbox when clicked, but you won’t be able to navigate between images in the lightbox. That’s because the way our plugin detects images, it doesn’s ‘see’ the images as a group like it does for, say, images inside a ‘wp-gallery-block’ container. There are two solutions to this:
- In the lightbox settings, under the Images section, you can set the lightbox to group all images together. When you do this, it’ll treat all the images on a page as a single gallery, and so you’ll be able to navigate.
- In the Pro version, you can specify custom grouping selectors. So you can tell it to treat all images within a .wp-block-jetpack-tiled-gallery container, for example, as a distinct gallery, and it will just group those together and allow you to navigate between them.
In any case, if you still have a page where you you’ve set the Jetpack gallery to link to media files, and it’s not opening those images in a lightbox individually at least, let me know and we can further troubleshoot what may be going on (it’s likely site specific in this case).