Lightbox for Gallery & Image Block icon
Media, Galleries & Sliders

Lightbox for Gallery & Image Block

Adds a simple & lightweight Lightbox to the standard WordPress Gallery & Image Block. No lock in and no dependencies.

Developer Johannes Kinast
86 Excellentmaintenance
  • 6 yearson WordPress.org
  • 2plugins
  • 20,400+installs in total
  • 5.0★avg. rating (94)
  • 100%of plugins updated this year
5/14 badges Profile →

Is Lightbox for Gallery & Image Block safe to install?

Good choice: actively maintained

  • Pass: Actively maintained Last updated 6 months ago (version 1.16.1).
  • Pass: Compatible with current WordPress Tested up to WordPress 7.0; the current release is 7.1. Needs PHP 5.3+.
  • Pass: Well rated Rated 5.0/5 by 88 users on WordPress.org.
  • Pass: Widely used Active on 20,000+ sites.

Check every plugin on your site with the free WordPress plugin checker →

Based on WordPress.org data, checked Nov 21, 2026. Always keep plugins updated and test changes on a staging site.

Overview

Lightbox for Gallery & Image Block describes itself as: “Adds a simple & lightweight Lightbox to the standard WordPress Gallery & Image Block. No lock in and no dependencies.”

It is active on 20,000+ WordPress sites and rated 5.0 out of 5 by 88 users on WordPress.org. Developers can extend it through 0 actions and 6 filters, listed below.

We haven't published a hands-on review of Lightbox for Gallery & Image Block yet. Want one, or need help with it? Send us a request.

How to install Lightbox for Gallery & Image Block

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “Lightbox for Gallery & Image Block” and pick the one by Johannes Kinast.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install gallery-block-lightbox --activate

Requirements: WordPress 5.4+ · PHP 5.3+ · tested up to WordPress 7.0.9

Hooks & customisation

Lightbox for Gallery & Image Block 1.16.1 fires 0 actions and 6 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

gallery-block-lightbox — top hooks
// Filters the animation attribute of baguetteBox.js
apply_filters( 'baguettebox_animation', 'slideIn' );

// Filters the captions attribute of baguetteBox.js
apply_filters( 'baguettebox_captions', … );

// Filters whether baguettebox assets have to be enqueued.
apply_filters( 'baguettebox_enqueue_assets', … );

// Filters the image files filter of baguetteBox.js
apply_filters( 'baguettebox_filter', '/.+\.(gif|jpe?g|png|webp|svg|avif|heif|heic|tif?f|)($|\?)/i' );

// Filters the ignoreClass attribute of baguetteBox.js
apply_filters( 'baguettebox_ignoreclass', 'no-lightbox' );

// Filters the CSS selector of baguetteBox.js
apply_filters( 'baguettebox_selector', … );

Browse all 6 hooks with examples →

Lightbox for Gallery & Image Block: frequently asked questions

Is Lightbox for Gallery & Image Block free?

Yes. Lightbox for Gallery & Image Block is free to download from the official WordPress.org plugin directory and is licensed under the GPL, so you can use it on as many sites as you like. Some developers sell a separate Pro version or paid add-ons; check the developer's website for details.

Is Lightbox for Gallery & Image Block safe to use?

Lightbox for Gallery & Image Block is actively maintained: the latest version was released 6 months ago. Users rate it 5.0 out of 5 from 88 reviews on WordPress.org. As with any plugin, keep it updated and only install it from WordPress.org or the developer.

Does Lightbox for Gallery & Image Block work with WordPress 7.1?

Very likely. It is tested up to WordPress 7.0, one release behind 7.1; minor releases rarely break plugins, but test updates on a staging site. It requires WordPress 5.4 or later and PHP 5.3 or later.

How many websites use Lightbox for Gallery & Image Block?

Lightbox for Gallery & Image Block is active on 20,000+ WordPress sites, according to WordPress.org. It is currently at version 1.16.1, last updated on May 28, 2026.

What are the best alternatives to Lightbox for Gallery & Image Block?

Plugins that do a similar job and are actively maintained include Firelight Lightbox (200,000+ installs), Envira Gallery (100,000+ installs), Responsive Lightbox & Gallery (100,000+ installs).

Can I customise Lightbox for Gallery & Image Block without editing its code?

Yes. Lightbox for Gallery & Image Block 1.16.1 fires 0 actions and 6 filters that you can use from a child theme or a code snippets plugin, so your changes survive plugin updates. Browse all 6 hooks with examples.

Done for you

Need Lightbox for Gallery & Image Block to do more?

Clear starting prices, an exact quote before any work, and changes built so plugin updates never wipe them.

Custom hook snippet

from $49

A small, update-safe change built on the plugin’s own hooks.

  • Code written against the plugin’s actions and filters
  • Tested on a staging copy of your site
  • Install instructions included

Typical turnaround: 2–3 business days

Choose this

Bug or conflict fix

from $79

Errors, broken layouts or two plugins that don’t get along.

  • Find the cause on a staging copy
  • Fix without breaking updates
  • Explain what was wrong

Typical turnaround: 1–3 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Need Lightbox for Gallery & Image Block customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with Johannes Kinast. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 21, 2026.

More plugins by Johannes Kinast

All 2 →

Mark your Affiliate Links with a *, add rel="nofollow sponsored noopener" to affiliate links and attach a disclosure at the…

400+ installs Updated 6 months ago

Alternatives in Media, Galleries & Sliders

See all →
Reviewed

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.

1+ million installs Updated 4 weeks ago 17 hooks
Reviewed

Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling and animation.

1+ million installs Updated 1 week ago 4 hooks
Reviewed

Responsive slider plugin to create sliders in visual editor easily. Build beautiful image slider, layer slider, video slider, post slider,…

800,000+ installs Updated 4 weeks ago 12 hooks
Reviewed

Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real…

600,000+ installs Updated 4 weeks ago 46 hooks