Loading...
banner plugin Image
woo-image

Lightbox for Gallery & Image Block

By Johannes Kinast

Description

This WordPress Plugin adds a simple and lightweight Lightbox to the standard WordPress Gallery and Image Block. It detects if a post contains a Gallery or Image Block and then loads and 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 solely 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 have done before, just without the lightbox.

One important thing to remember is that you always have to select Link to image file or Link images to media file for all of your Image and Gallery Blocks to work properly. If you choose None or Link to attachment page, it will not work. But that is fine if you do not want the Lightbox for a specific Image or Gallery.

Take a look at the YouTube video from Jakson where he reviews this plugin.

Here are the features of baguetteBox.js: Written in pure JavaScript, no dependencies, image captions support, responsive, supports swipe gestures, around 13 KB, 7 KB gzipped.

Works with: Gallery Block, Image Block, Media and Text Block, Gallery (Default Classic Editor Gallery), CoBlocks Gallery Collage, Meow Gallery.

Don't forget to select Link to Media File for all of your Galleries and Images to work properly.

Notice: At the moment, just Blocks inside a post are supported. Not Blocks in a Widget. You can make it work but have to enqueue the necessary style and script yourself.

Other Notable Features

Here are a few other notable features of this free Lightbox for Gallery & Image Block plugin.

check-fill
Lightbox
check-fill
Gallery
check-fill
Image Block

Screenshots

FAQ

Check if you used the built in Gallery Block and if Link to is set to Media File in the Block sidebar. On an Image Block choose Add Link at the Toolbar.

Contributors and developers

“Lightbox for Gallery & Image Block” is open source software. The following people have contributed to this plugin.

WPS
Exclamation-Image

7.05

Very Good

Star-Image

Ratings

5 out of 5 | 88
History-Image

Version

1.16.1
calendar-Image

Last updated

2 months ago
Star-Image

Active installations

20,000+
Star-Image

WordPress version

6.9.4 or higher
php-Image

PHP version

5.3 or higher
translate-Image

Languages

10

Tags

Block,Block-editor,Gallery,Image,Lightbox