Lightbox for Gallery & Image Block
by Johannes Kinast 5 (88 reviews)

Lightbox for Gallery & Image Block

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

Compatible with WP 6.9
vtrunk Current Version vtrunk
Updated 1 month ago Last Update on 05 Dec, 2025
Synced 14 hours ago Last Synced on
Rank
#1,373
No change
Active Installs
20K+
No change
KW Avg Position
75.8
-0.4 better
Downloads
170K
+7 today
Support Resolved
50%
No change
Rating
100%
Review 5 out of 5
5 (88 reviews)

Next Milestone 30K

Total Progress 35.1%
20K+ 30K+
235
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 6,492 more installs to reach 30K+

Rank Changes

1,304 1,340 1,376 1,411 1,447 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
1,368 1,373 1,378 1,383 1,388 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
1,368 1,375 1,382 1,389 1,396 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
1,368 1,375 1,382 1,389 1,396 22-10-2025 23-10-2025 24-10-2025 25-10-2025 26-10-2025 27-10-2025 28-10-2025 29-10-2025 30-10-2025 31-10-2025 01-11-2025 02-11-2025 03-11-2025 04-11-2025 05-11-2025 06-11-2025 07-11-2025 08-11-2025 09-11-2025 10-11-2025 11-11-2025 12-11-2025 13-11-2025 14-11-2025 15-11-2025 16-11-2025 17-11-2025 18-11-2025 19-11-2025 20-11-2025 21-11-2025 22-11-2025 23-11-2025 24-11-2025 25-11-2025 26-11-2025 27-11-2025 28-11-2025 29-11-2025 30-11-2025 01-12-2025 02-12-2025 03-12-2025 04-12-2025 05-12-2025 06-12-2025 07-12-2025 08-12-2025 09-12-2025 10-12-2025 11-12-2025 12-12-2025 13-12-2025 14-12-2025 15-12-2025 16-12-2025 17-12-2025 18-12-2025 19-12-2025 20-12-2025 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
Current #1,373
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 100 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
0 100 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
0 100 21-12-2025 22-12-2025 23-12-2025 24-12-2025 25-12-2025 26-12-2025 27-12-2025 28-12-2025 29-12-2025 30-12-2025 31-12-2025 01-01-2026 02-01-2026 03-01-2026 04-01-2026 05-01-2026 06-01-2026 07-01-2026 08-01-2026 09-01-2026 10-01-2026 11-01-2026 12-01-2026 13-01-2026 14-01-2026 15-01-2026 16-01-2026 17-01-2026 18-01-2026 19-01-2026 20-01-2026
0 100 200 22-10-2025 25-10-2025 28-10-2025 31-10-2025 03-11-2025 06-11-2025 09-11-2025 12-11-2025 15-11-2025 18-11-2025 21-11-2025 24-11-2025 27-11-2025 30-11-2025 03-12-2025 06-12-2025 09-12-2025 12-12-2025 15-12-2025 18-12-2025 21-12-2025 24-12-2025 27-12-2025 30-12-2025 02-01-2026 05-01-2026 08-01-2026 11-01-2026 14-01-2026 17-01-2026 20-01-2026
0 1K 2K 3K 4K 20-01-2025 01-02-2025 13-02-2025 25-02-2025 09-03-2025 21-03-2025 02-04-2025 14-04-2025 26-04-2025 08-05-2025 20-05-2025 01-06-2025 13-06-2025 25-06-2025 07-07-2025 19-07-2025 31-07-2025 12-08-2025 24-08-2025 05-09-2025 17-09-2025 29-09-2025 11-10-2025 23-10-2025 04-11-2025 16-11-2025 28-11-2025 10-12-2025 22-12-2025 03-01-2026 15-01-2026 20-01-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

5.0
88 reviews
Overall 100%
5
87 (99%)
4
1 (1%)
3
0 (0%)
2
0 (0%)
1
0 (0%)

Tracked Keywords

Showing 5 of 5
Keyword Position Change Type Updated
lightbox 14 Tag 16 hours ago
gallery 42 Tag 16 hours ago
block-editor 89 Tag 16 hours ago
image 116 Tag 16 hours ago
block 118 Tag 16 hours ago

Unlock Keyword Analytics

Track keyword rankings, search positions, and discover new ranking opportunities with a Pro subscription.

  • Full keyword position tracking
  • Historical ranking data
  • Competitor keyword analysis
Upgrade to Pro

Support Threads Overview

Resolved
Unresolved
2
Total Threads
1
Resolved
1
Unresolved
50%
Resolution Rate

Track This Plugin

Get detailed analytics, keyword tracking, and position alerts delivered to your inbox.

Start Tracking Free

Plugin Details

Version
trunk
Last Updated
Dec 05, 2025
Requires WP
5.4+
Tested Up To
6.9
PHP Version
5.3 or higher

Support & Rating

Rating
★ ★ ★ ★ ★ 5
Reviews
88
Support Threads
2
Resolved
50%

Keywords

Upgrade to Pro

Unlock keyword rankings, search positions, and detailed analytics with a Pro subscription.

Upgrade Now

Frequently Asked Questions

Common questions about Lightbox for Gallery & Image Block

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.
Yes! Just set the Link at the Toolbar to Media File
Set Media File to None or remove the Link.
Since WordPress 5.6 you can now set the default behavior for Link to. Go to yourblog.com/wp-admin/options.php and search for image_default_link_type. Set the value to file and hit save. This will apply to all new Image & Gallery Blocks. Or you can add the follow snipped (WordPress 5.7+ / PHP 7.4+) to your functions.php: add_filter( 'option_image_default_link_type', fn () => 'file' );
You can change the CSS selector to a gallery (or galleries) containing <a> tags used by baguetteBox.js with the baguettebox_selector filter: add_filter( 'baguettebox_selector', function( $selector ) { return $selector . ',.my-gallery'; } ) You can override the full selector by just returing your selector e.g. to show all images in your post in one lightbox (not per Gallery/Image Block): add_filter( 'baguettebox_selector', function() { return '.entry-content'; } )
If you use a Gallery or Image Block outside a post e.g. inside a Widget and want to apply the Lightbox, you need to ensure that the required baguettebox assets (script & style) are queued using the baguettebox_enqueue_assets filter. If the Widget is on every page or the majority of pages, you can just enqueue the baguettebox assets everywhere. Just add the following snippet to functions.php: add_filter( 'baguettebox_enqueue_assets', '__return_true' ); If your Widget is just at the front page, use is_front_page(): add_filter( 'baguettebox_enqueue_assets', function( $enqueue_assets ) { return is_front_page(); } ); If you want to use the Gallery & Image Block Lightbox plugin with a block type that is not supported by default, you can make use of the has_block() function. For instance, in the case of the Kadence Blocks Advanced Gallery, use: add_filter( 'baguettebox_enqueue_assets', function ( $enqueue_assets ) { return $enqueue_assets || has_block( 'kadence/advancedgallery' ); } ); Of course, in the previous example you also have to add the appropriate baguettebox selector, i.e. add_filter( 'baguettebox_selector', function( $selector ) { return $selector . ',.wp-block-kadence-advancedgallery'; } );
By default, baguetteBox.js shows a slide-in animation on image transitions. You can change it to the following filter to 'fadeIn': add_filter( 'baguettebox_animation', function () { return 'fadeIn'; } ); Or disable the animation completely with 'false': add_filter( 'baguettebox_animation', function () { return 'false'; } );
You can remove the link from the image or add the CSS class no-lightbox to the image link. Not to the image directly; you have to add the class to the link.

Sign In / Register

You need to sign in or register to use this feature.