开发者 | dmrhn |
---|---|
更新时间 | 2025年6月23日 21:03 |
捐献地址: | 去捐款 |
PHP版本: | 6.0 及以上 |
WordPress版本: | 6.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Enable or disable the Lightbox feature for any gallery block by selecting 'media file' under the 'link to' dropdown. Once selected, the Lightbox toggle will appear.
Yes, you can use the lightbox with custom galleries by using the provided filter. Example code is provided for reference. add_filter( 'dLightbox:custom:selectors', function ( $selectors ) { $selectors = array_merge( $selectors, array('.my-gallery', '.your-gallery') ); return $selectors; });
dLightbox.js supports touch, mousewheel, keyboard, and mouse drag interactions.
Yes it supports Lightbox thumbnails with an easy toggle. Also with "dLightbox-thumbnails" class you can easily adapt thumbnails to your custom coded galleries.
Yes, the lightbox feature provided by Gallery Lightbox is fully responsive, ensuring optimal viewing experiences across all devices.
No, there is no dependency on jQuery. dLightbox is custom coded from scratch, ensuring efficient performance and compatibility with modern web development practices.
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. This ensures minimal impact on page loading speed.
If you encounter any issues, have feature requests, or need support, please visit the GitHub repository and create an issue. Our team will be happy to assist you.