Tell us what you are trying to do?
I use a lightbox plugin that nicely shows galleries as slideshows with social sharing and other advanced features. I need to disable the lightbox for the Toolbox Gallery block because it opens underneath the other lightbox and is still there when the other lightbox is closed.
If I turn off the lightbox in the Toolset Gallery Block settings, it causes neither lightbox to work. Most lightbox plugins look for images that link to their file in the media library.
I have been using the DFactory Responsive Lightbox but it does not work well with WP 5.6 so I am now moving to the Lightbox with Photoswipe plugin by Arno Welzel which works well with WP 5.6 and has better social sharing.
In the past I have avoided the Gallery Block and built child views that loop through the repeating image fields and construct a WordPress Gallery shortcode or Toolbox gallery-like markup where I can control the lightbox related data but I'd really rather just use the Toolbox Gallery Block on sites where I'm using the block editor for Content Templates.
The best solution would be to have separate switches in the Gallery Block settings to turn the lightbox on/off (that just affects the lightbox attributes) and to link to the media file.
If there is not an easy no-code solution, can you suggest a small bit of jQuery or javascript that can find all the images from the Gallery block on the page and add an attribute?
Is there any documentation that you are following?
The documentation only covers the switch to disable the lightbox which disables both lightboxes so is not a good solution.
Is there a similar example that we can see?
Open the gallery of two photos at: hidden link
Then close the lightbox by clicking the X in the upper right. You'll see the Toolset lightbox still open underneath.
What is the link to your site?
hidden link