Home Plugins easy gallery lightbox
Gallery Block Lightbox logo

Gallery Block Lightbox

by taha on WordPress.org

Extremely lightweight yet powerful and touch-friendly, jQuery-free, Lightbox toggle button for core Gallery block and supports custom-coded galleries.

(0)
Gallery Block Lightbox - Screenshot 1

This WordPress Plugin adds Lightbox feature to the core Gallery block with a simple toggle button. Easily enable or disable it for any gallery block by selecting ‘media file’ under the ‘link to’ dropdown. Once selected, the Lightbox toggle will appear. It also supports custom coded galleries through a filter (check FAQ).

dLightbox.js is fully responsive, supporting touch, mousewheel, keyboard, and mouse drag interactions, double click or tap/touch to zoom original image, build-in thumbnails, as well as slide counters and figcaption. With no dependency on jQuery, dLightbox.js ensures optimal viewing experiences across all devices.

Although extremely lightweight at only 2.85kb gzipped for both dLightbox.js and dLightbox.css, the plugin only loads assets into the page if there is a core Gallery block or custom selectors defined via a filter.

Features

  • Enable/disable with a simple toggle button for each Gallery block individually.
  • Custom coded galleries support.
  • Supports touch, mousewheel, keyboard, and mouse drag interactions.
  • Double click or tap/touch to zoom original image.
  • Lightbox thumbnails with an easy toggle button.
  • Slide counter and figcaption support.
  • jQuery-Free, lightweight at only 2.85kb gzipped for both dLightbox.js and dLightbox.css
  • Fully responsive.
Active installations30+
Weekly downloads
60+361.54%
Version0.5
Last updated6/23/2025
WordPress version6.3
Tested up to6.8.1
PHP version7.4
Tags
carouselgallerygallery blocklightboxslider