ConicPlex

Start Your Project

Illustration of one spotlighted photo card popping forward out of a dimmed grid of photo cards, representing a WordPress lightbox gallery plugin

On this Page

How to Add a Lightbox to WordPress’s Gallery and Image Blocks (4 Plugins Compared)

Four free plugins add a lightbox to WordPress Gallery and Image blocks, with real setup steps and honest limitations for each, plus when the native block setting is already enough.

WordPress added a native “Enlarge on click” lightbox to the Image block back in version 6.4, and the Gallery block has supported a similar link-to-media-file option for even longer. If you’re running a current version of WordPress and only need a basic click-to-enlarge popup, you may not need a plugin at all. This post compares four free plugins worth installing when core isn’t enough: an older WordPress install, a Classic Editor gallery, a third-party gallery block, or a lightbox that shows EXIF and GPS data the native toggle was never built to display. Lightbox for Gallery & Image Block is the lightest option if you just want core’s missing toggle back. Meow Lightbox is the one worth a look if you shoot and want camera data shown next to your photos.

When WordPress’s Built-In Lightbox Is Already Enough

Before installing anything, check your block settings. Select an Image block, open its block settings panel, and look for an “Enlarge on click” toggle. On the Gallery block, the same effect comes from setting each image’s Link option to Media File. Both work with zero plugins on a current WordPress install, and both are exactly what a lot of “best lightbox plugin” roundups skip past entirely.

Where core falls short: sites still running WordPress versions older than 6.4, galleries built with the Classic Editor’s shortcode, third-party gallery blocks like CoBlocks or Meow Gallery, WooCommerce product image galleries, and anyone who wants more than a bare popup, EXIF data, GPS maps, swipe gestures tuned for mobile, or a dedicated settings screen instead of a per-block toggle. That’s the real gap the four plugins below fill, and it’s narrower than most “best WordPress lightbox plugins” content admits.

Four Plugins That Add a WordPress Gallery Block Lightbox

Plugin Best for Price Last updated
Lightbox for Gallery & Image Block A zero-config lightbox for core blocks only Free May 28, 2026
Lightbox with PhotoSwipe EXIF data on any linked image, not just galleries Free November 26, 2026
Meow Lightbox Photographers who want EXIF and GPS map display Free, Pro from $19/year October 30, 2026
WP Lightbox 2 A dedicated settings screen for opacity and animation Free, Premium from $23 (single site, lifetime) January 31, 2026

Lightbox for Gallery & Image Block

  • Price: Free
  • Requires: WordPress 5.4+, PHP 5.3+
  • Last updated: May 28, 2026

Lightbox for Gallery & Image Block does one thing and nothing else: it drops baguetteBox.js, a dependency-free JavaScript lightbox under 13KB, onto whatever the native Gallery or Image block already renders. It doesn’t register its own block, add a settings screen, or touch anything else on your site. Deactivate it and your Gallery and Image blocks keep working exactly as they did before, just without the popup. That’s the real difference between this plugin and the other three here: everything else adds an admin screen or an engine choice, this one adds nothing you have to configure beyond what the block editor already asks for.

Setup is close to the install-and-activate that most “best plugin” posts only pretend other plugins have. Add a Gallery or Image block as normal, open its block settings, and set Link to Media File, the exact same setting core’s own lightbox toggle depends on. Click a thumbnail on the published page and baguetteBox takes over. The developer also tests it against a short list of non-core blocks: CoBlocks’ gallery variants and Meow Gallery, along with the Classic Editor’s gallery shortcode.

The catch is that one setting. Leave Link set to None or Link to Attachment Page, still the default on a lot of imported content and older posts, and the lightbox does nothing, with no error and no warning anywhere in the editor. It also doesn’t support blocks placed inside widget areas without manually enqueuing its script and style yourself, something the plugin’s own FAQ spells out rather than hides.

Lightbox with PhotoSwipe

  • Price: Free
  • Requires: WordPress 6.5+, PHP not specified by the developer
  • Last updated: November 26, 2026

Lightbox with PhotoSwipe wraps the PhotoSwipe engine, the same one a couple of the other plugins in this comparison license or imitate, around every linked image on a page, not just ones inside a Gallery block. Single images, Media & Text blocks, WooCommerce product shots: anything linked to its own media file gets the same popup. It can also surface EXIF metadata on an image when the uploaded file still carries it, a feature none of core’s own block settings offer.

There’s no real settings screen to speak of. Install it, activate it, and it starts working on any image already linked to its media file, which again means checking the Link setting in the block editor rather than configuring anything inside the plugin. It was updated the day before this comparison was researched, a stronger maintenance signal than almost anything else on this list.

Because it works against every linked image on a page rather than scoping itself to galleries, it can occasionally catch an image you didn’t mean to lightbox, a linked logo or an inline screenshot, if that image happens to also be linked to its own file. There’s no built-in way to exclude a single image short of changing how it’s linked.

Meow Lightbox

  • Price: Free, Pro from $19/year
  • Requires: WordPress 6.0+, PHP 8.1+
  • Last updated: October 30, 2026

Meow Lightbox comes from Meow Apps, a team known for several WordPress photography and AI-image plugins, and it’s built around that audience: EXIF data (camera, lens, shutter speed, aperture, ISO), GPS coordinates shown on an embedded map, and a choice between a custom-built engine or PhotoSwipe, switchable from a real settings page instead of a config file. It’s the only plugin here aimed specifically at photographers rather than general site owners.

After activation, a Meow Lightbox entry shows up in the WordPress admin menu, where you pick the engine and the CSS selectors it should attach to. By default that’s .entry-content, .gallery, and .mgl-gallery, covering the core Gallery block, Meow’s own gallery plugin, and most theme content areas without extra setup. It also works against WooCommerce product image galleries out of the box, a specific case none of the other three plugins mention supporting.

It’s newer and more actively maintained than some of the older lightbox plugins that dominate this category, worth knowing going in. The free version covers everything described above. Deep-linking to a specific image, a slideshow mode, and social sharing buttons sit behind the Pro tier, which starts at $19/year for a single site. It also requires PHP 8.1, a meaningfully higher bar than any other plugin here, so check your host’s PHP version before installing it on an older server.

WP Lightbox 2

  • Price: Free, Premium from $23 (single site, lifetime)
  • Requires: WordPress 3.0+, PHP not specified by the developer
  • Last updated: January 31, 2026

WP Lightbox 2 takes the opposite approach from the first two plugins on this list. Instead of relying on the block editor’s existing Link setting, it adds its own dedicated settings page covering overlay opacity, animation duration, navigation arrow style, and whether to show a download link or caption text under each image. It applies to every image and gallery on the site, Gallery block or not, groups related images automatically, and lets visitors step through them without leaving the lightbox.

Install it from the Plugins screen, activate it, and a WP Lightbox 2 menu item appears in the dashboard sidebar where every setting above lives on one screen. There’s no need to touch the block editor’s Link setting at all for it to start working.

It was last updated in January 2026, noticeably longer ago than the other three plugins in this comparison, and it’s the one case here where that gap is worth weighing against the extra settings screen: more configuration options generally mean more surface area that can break on a future WordPress release. The free version has no animation effects; those, along with a few additional design options, sit behind a Premium license starting at $23 for a single site.

How to Pick the Right One

  1. If you’re on a current WordPress version using only the core Gallery or Image block, check “Enlarge on click” and the Link to Media File setting first. You may not need a plugin at all.
  2. If you need a zero-config lightbox for core blocks, plus CoBlocks or Meow Gallery, and nothing else: Lightbox for Gallery & Image Block.
  3. If you want EXIF data shown on any linked image anywhere on the page, not just inside a gallery: Lightbox with PhotoSwipe.
  4. If you’re a photographer who wants GPS maps and camera data displayed, and don’t mind a paid tier for the extras: Meow Lightbox.
  5. If you want one settings screen to control opacity, animation, and navigation style without touching block settings, and can live with a plugin that’s updated less often than the others: WP Lightbox 2.

If none of these fit because you need a lightbox tied to custom logic, a specific gallery layout, or a WooCommerce catalog with its own rules, that’s outside what any off-the-shelf plugin here is built for. Our Plugin Development team builds that kind of thing directly, and our broader WordPress Development work covers the rest of the site around it.

For other block-editor visual plugins we’ve compared the same way, see our rundowns of before-and-after image slider plugins and carousel block plugins for the WordPress block editor.

Frequently Asked Questions

Do I need a lightbox plugin if I’m already running a current version of WordPress?
Not necessarily. Since WordPress 6.4, the Image block has included a native “Enlarge on click” setting that opens a basic lightbox with no plugin required, and the Gallery block has long supported linking images to their media file for the same effect. A plugin is worth it mainly when you need something core doesn’t offer: EXIF or GPS display, support for a third-party gallery block, or compatibility with the Classic Editor’s gallery shortcode on an older site.

Why doesn’t my lightbox plugin do anything when I click an image?
The single most common cause, across every plugin in this comparison, is the block’s Link setting. If an image or gallery is set to Link: None or Link to Attachment Page instead of Media File, most of these plugins have nothing to attach to and do nothing, without throwing an error.

Can I use one of these plugins with WooCommerce product images?
Meow Lightbox explicitly supports WooCommerce product galleries out of the box. Lightbox with PhotoSwipe will generally pick up any product image that’s linked to its own file, since it isn’t scoped to a specific block. WP Lightbox 2 and Lightbox for Gallery & Image Block are built around the core Gallery and Image blocks and aren’t guaranteed to behave the same way on product pages without testing first.

Will any of these plugins slow down my site?
Lightbox for Gallery & Image Block is the lightest by a wide margin, at roughly 13KB with no dependencies. The others load a full lightbox engine, PhotoSwipe or a custom equivalent, which is still small by plugin standards but adds more than a single-purpose script. None of them should cause a noticeable slowdown on a typical WordPress site.

Do I need a Pro plugin if I just want a basic lightbox?
No. All four plugins are fully usable for free, and two of them, Lightbox for Gallery & Image Block and Lightbox with PhotoSwipe, have no paid tier at all. The Pro options on Meow Lightbox and WP Lightbox 2 add extras like deep-linking, slideshows, and additional animation styles that most sites don’t need.

Sources

Husen Memon is a co-founder of ConicPlex, a web development agency specializing in WordPress, Webflow, and custom software builds. Over more than 9 years and 200+ client projects, he has worked across everything from plugin development to full platform migrations, with a focus on building sites and tools that hold up under real day-to-day use, not just in a demo. He writes here about the technical decisions and tradeoffs that come up in that work.

Leave a Reply

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

Keep reading

News & Updates

Drupal Ships an Emergency Fix for Installer Flaw Still under Active Attack (CVE-2026-136716)

Drupal shipped an emergency fix for a second critical installer flaw, CVE-2026-136716, that attackers are already exploiting. Here’s who’s affected…

Sameer Malek

November 26, 2026

Plugins

Layered illustration of stacked package shapes with a location pin, representing multiple WooCommerce pickup locations

How to Add Multiple Pickup Locations to WooCommerce (3 Plugins Compared)

WooCommerce’s built-in Local Pickup is a single on/off shipping method. There is no field for a second address, no way…

Sajil Memon

November 26, 2026

News & Updates

WordPress.org Blocks Six WP Connect Plugins after a Compromised Developer Account Pushed a Backdoor

WordPress.org closed six plugins from the developer WP connect on November 22, 2026, after someone with access to the company’s…

Aftab Memon

November 25, 2026

WhatsApp
Husen Memon
Husen Memon
Typically replies instant