Lightbox for Gallery & Image Block

Lightbox for Gallery & Image Block

Adds a simple & lightweight Lightbox to the standard WordPress Gallery & Image Block. No lock in and no dependencies.
Rating:
5.0
star-rating-1star-rating-2star-rating-3star-rating-4star-rating-5
Active Installations:
20000+
Last Updated:
Jan 07, 2025
WordPress Version:
5.4 or higher
Tested up to:
6.7.2

Lightweight Lightbox Plugin

Adds a simple & lightweight Lightbox to your WordPress Gallery & Image Blocks. No lock-in effect, works with standard blocks.

Modern Minimal Look

Uses baguetteBox.js, a pure JavaScript Lightbox script without any dependencies, for a modern minimal look. Deactivate anytime without affecting your Gallery and Image Blocks.

Responsive & Swipe Gestures

Enjoy a responsive Lightbox that supports swipe gestures for easy navigation. Image captions are also supported.

Works with Various Blocks

Compatible with default blocks like Gallery, Image, and Media and Text Blocks. Also works with popular gallery plugins like Meow Gallery and GenerateBlocks Image.

1.15

  • Add filter baguettebox_captions to change the JavaScript function to get the caption of an image

1.14

1.13

  • Support GenerateBlocks Image

1.12

  • Support Meow Gallery (+ Gallery Block)

1.11

  • Add filter baguettebox_enqueue_assets to control enqueing of baguettebox assets.

1.10.1

  • Fix Image in Media & Text Block

1.10.0

  • Add two Filter baguettebox_selector for the baguetteBox.js CSS selector and baguettebox_filter for the baguetteBox.js file type RegExp filter

1.9.0

  • Support new Gallery Block format (will be released with WordPress 5.9 in December 2021) https://make.wordpress.org/core/2021/08/20/gallery-block-refactor-dev-note/

1.8.5

  • Fix Caption for the single Image Block

1.8.4

  • Add Caption Support for the Classic Editor Gallery

1.8.3

  • Fix Regex Filter

1.8.2

  • Add support for file links with query parameter at the end

1.8.1

  • Fix image link filter

1.8.0

  • Add support for .avif, .heif/.heic, .tif

1.7.0

  • Add support for Media and Text Block

1.6.0

  • Add support for CoBlocks Gallery Collage / Masonry / Offset / Stacked

1.5.0

  • Add support for Classic Editor Gallery

1.4.0

  • Add support for .svg images

1.3.1

  • Remove trailing slash from register_script/style

1.3.0

  • Support for the default Image Block

1.2.0

  • Support HTML for the Caption

1.0.0

First release

Very helpfull Lightbox, lightweight, zero configuration

By Moktar (Eng_A_Moktar) on December 17, 2024

Please add support for RTL

Thanks

Parfait !

By chrisdubasrhin on November 21, 2024

Simple, efficace et élégant !

Lean, beautiful, accessible, unobtrusive lightbox for users of the block editor

By Bjarne Oldrup (oldrup) on August 9, 2024

Lightbox for Gallery & Image Block is a lean, efficient lightbox solution for the core WordPress Gallery and Image blocks. What I especially like, over the core WordPress light box feature:

  • Prettier; subjective, I know, but I think it is.
  • Works for entire galleries; core WP is/was individual image only.
  • Super lean; 9kb of JavaScript, no dependencies.
  • Easy to style with classes and ID's.
  • Pretty good accessibility; works with keyboard navigation and focus outline.
  • No plugin lock-in; enabled by linking the image to media file, a core functionality.

The best plugins for WordPress are, in my opinion, the ones that you can enable when they improve the experience, and disable if it, for some reason, doesn't work well with the website anymore. That leaves no traces behind, and requires no cleaning up the content afterward. Lightbox for Gallery & Image Block is such a plugin. I enjoy using it a lot.

It does not support, not include code for, lightboxing PDF'files and videos. That might be an advantage or disadvantage, depending on your needs. In my opinion, viewing PDF files is best taken care of by the browser chosen by the visitor, and embedded videos have other great plugins available for addressing overlays and privacy.

In conclusion, a robust solution for a very specific task, nothing more, nothing less.

Five starts ⭐⭐⭐⭐⭐

IMPRESSIVE, FANTASTIC!

By xenolito on June 13, 2024

It works PERFECTLY and seamessly.

Lightweight and optimized, no lock-in.

Just great job!

EXCELLENT !!

By Michael Vaughn (editorcorvette) on April 12, 2024

The plugin was recommended by Perfmatters and it's a perfect match for the functionality required. 6 stars for sure, if not 7.

Thanks for this beautiful plugin.

By praju.me (praju87) on April 5, 2024

Thanks a lot for this beautiful plugin which just works out of the box. I loved the fact that this plugin does not add any bloatware to the WordPress dashboard.

Perfect

By rom1our on March 28, 2024

Very lightweight lightbox plugin without the need for JQuery. Works perfectly.

Excellent plugin

By civid on March 20, 2024

If there was 6 stars i would give you 7.

Fastest Lightbox ever

By ricardocruz1978 on March 13, 2024

This is definetly the fastest lightbox for wordpress.
Works perfectly with default wordpress blocks and pro plugins like generateblocks.
If you want to high rank on google speed metrics I recommend this plugin.

Simple and working with no config

By johnravrasta on December 10, 2023

Just perfect, install, activate and you are done. Even when other similar plugins stop working when upgrading to latest "Twenty twenty four" WordPress theme!

point your gallery or single image to MEDIA and not to none or attachement and lightbox will work like a charm.

Try other plugins too!

Useful Blocks

It is a plugin that collects very convenient blocks.

Try Demo More Details

Sight – Professional Image Gallery and Portfolio

Introducing Sight — a fast & simple way to create professional looking portfolios and neatly stunning image and video galleries — all with zero co …

Try Demo More Details

Genesis Custom Blocks

Custom blocks for WordPress made easy.

Try Demo More Details
Screenshots
Author Site Author Site

Try Lightbox for Gallery & Image Block With InstaWP

Contact Sales

Reach out to us to explore how InstaWP can benefit your business.