Lightbox for Gallery and Image Block

This WordPress Plugin adds a simple & lightweight Lightbox to the standard WordPress Gallery & Image Block. It detects if a post contains a Gallery or Image Block and then loads & initializes baguetteBox.js, a pure JavaScript Lightbox script without any dependencies and a modern minimal look.

There is no lock in effect. It does not add a new Block Editor/Gutenberg Block and relies solo on the standard WordPress Gallery and Image Block. You can deactivate this plugin at any time and your Gallery and Image Blocks will work as they’ve done before. Just without the lightbox.

Just one important thing to remember: You always have to select Link to → Media File for all of your Galleries & Images to work properly. If you choose None or Attachment Page it will not work. But that’s fine if you don’t want the Lightbox for a specific Image or Gallery.

Installation

The plugin can either be downloaded here, or you can just go into the WordPress Dashboard, go to Plugins->Add Plugin, and search for “Lightbox for Gallery and Image Block.

Either upload the downloaded plugin or install it. Then simply activate the plugin.

Configuration

There is no configuration. Simply add a Gallery or Image Block to your Post and set Link to → Media File.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *