When you create galleries with the WordPress Gallery Shortcode, you are limited with viewing capability. With older themes, we sent you to an image (attachment) page with a viewer, but it just wasn’t as pleasant as we had hoped for.
We decided to implement a lightbox (the ColorBox lightbox script) into this theme which now displays your gallery images in a popup overlay viewer.
Sample Gallery Page
If your images have colour, the gallery will display them as Black & White. However, they have a hover effect which shows the colour thumbnail version.
This is disabled by default, but you can enable it if you decide to use the WordPress Gallery shortcode. One added bonus is that we made this compatible with the Gutenberg block editor’s own gallery block.
Go to Appearance >> Customize >> Other Options
Look for the “Enable Gallery Lightbox” setting and check the box to enable the lightbox.
Click the “Publish” button.
Make Your Gallery Open in the Lightbox
Once you make your gallery, you will want to link your thumbnails to the “Media” option in the gallery settings. This will enable the lightbox when someone clicks on a thumbnail.
NOTE: This lightbox works with the WordPress Gallery Shortcode and the Block Gallery.