Block Editor Auto Lightbox WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA
Automatically adds a lightbox to images in WordPress blocks with support for lazy loading and original image URLs.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/juditth/block-editor-auto-lightbox/archive/refs/heads/main.zipAuto Lightbox for Blocks
Automatically adds a responsive lightbox to your WordPress block images. Supports galleries and lazy-loading.
Description
Auto Lightbox for Blocks is a lightweight, zero-configuration plugin that automatically adds a beautiful lightbox to your WordPress image and gallery blocks. Built with the powerful GLightbox library.
Key Features:
- Zero Configuration: Works out of the box with standard WordPress blocks (
.wp-block-image,.wp-block-gallery). - Original Image Detection: Automatically finds and displays the full-size image, even if you inserted a smaller size.
- Lazy Load Support: Fully compatible with WordPress native lazy loading.
- Accessibility: Built with accessibility in mind (ARIA support, keyboard navigation).
- Smart Grouping: Automatically groups images in the same gallery block. Option to group ALL page images.
- Touch Friendly: Swipe navigation for mobile devices.
Installation
- Upload the plugin files to the
/wp-content/plugins/auto-lightbox-for-blocksdirectory, or install the plugin through the WordPress plugins screen. - Activate the plugin through the 'Plugins' screen in WordPress.
- Navigate to Settings -> Auto Lightbox to configure options (optional).
Frequently Asked Questions
Does this work with custom blocks?
Yes! You can add any CSS selector in the plugin settings to target custom blocks or containers.
Changelog
1.0.8
- Fix release version to udpate plugin properly
1.0.7
- Fix visible caption
1.0.6
- Disabled captions/descriptions in lightbox view.
1.0.5
- Switched to custom update server to avoid GitHub API rate limits.
1.0.4
- Fixed settings persistence issue where settings would disappear after plugin updates.
- Added version tracking and automatic settings migration.
- Changed default for "Group All Page Images" to OFF (unchecked) for better out-of-box experience.
- Settings now properly merge with defaults on every page load.
1.0.3
- Refactored lightbox engine for strict block isolation using per-block GLightbox instances.
- Fixed issue where single images were incorrectly grouped with galleries.
- Improved compatibility with lazy-loaded images and attachment page links.
1.0.2
- Fixed hanging issue when lightbox opening images linked to attachment pages.
- Improved image link detection.
1.0.1
- Added plugin update checker for WP
1.0.0
- Initial release.
Releases
10 releases.
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.