Linux 软件免费装
Banner图

Advanced Lightbox for Gallery Block

开发者 dmrhn
更新时间 2026年11月11日 21:36
捐献地址: 去捐款
PHP版本: 6.3 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

gallery lightbox gallery lightbox gallery block lightbox slider

下载

0.4 0.6 0.7 0.5

详情介绍:

This WordPress Plugin adds an Advanced Lightbox to the core Gallery block. Select the gallery, open the Link menu in the block toolbar and choose "Advanced Lightbox" (next to "Enlarge on click"). Thumbnails and Captions toggles then appear in the block settings sidebar. 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.78kb 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.

安装:

  1. Download the plugin ZIP file.
  2. In your WordPress admin panel, navigate to Plugins -> Add New.
  3. Click the "Upload Plugin" button, choose the ZIP file you downloaded, and click "Install Now."
  4. After installation, activate the plugin.

常见问题:

How do I enable the Lightbox for the core Gallery block?

Select the gallery block, open the Link menu in the block toolbar and choose "Advanced Lightbox". Choosing any other Link option turns it off. Thumbnails and Captions toggles appear in the block settings sidebar while it is selected.

Can I use Lightbox with my custom galleries?

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; });

Is it mobile touch friendly?

dLightbox.js supports touch, mousewheel, keyboard, and mouse drag interactions.

Is it supports thumbnails?

Yes it supports Lightbox thumbnails with an easy toggle. Also with "dLightbox-thumbnails" class you can easily adapt thumbnails to your custom coded galleries.

Is the lightbox responsive?

Yes, the lightbox feature provided by Gallery Lightbox is fully responsive, ensuring optimal viewing experiences across all devices.

Does it need jQuery?

No, there is no dependency on jQuery. dLightbox is custom coded from scratch, ensuring efficient performance and compatibility with modern web development practices.

Does the plugin impact page loading speed?

Although extremely lightweight at only 2.78kb 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.

What if I encounter any issues or have feature requests?

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.

更新日志:

0.7 0.6 0.5 0.4 0.3 0.2.1 0.2 0.1