Lightbox block

The Lightbox block can be used to wrap images to give them lightbox capability.

While the ska/image and ska/gallery blocks already have an option to enable lightbox, you can wrap multiple images (and/or galleries) with the Lightbox block to have the images render in the same lightbox. To achieve that you should disable the “Lightbox” option on the original blocks and instead change their links to “Full size image”:


The lightbox uses the PhotoSwipe library, same library is also applied to WooCommerce product images when using ska-theme.


Images wrapped with a lightbox block

Images & a slider with a gallery wrapped in a lightbox