| 开发者 | nicmare |
|---|---|
| 更新时间 | 2026年7月10日 18:46 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Show Caption.
When the toggle is enabled, the native lightbox receives the current image alt text as a data-img-alt attribute on the enlarged lightbox figure. A small frontend CSS then displays that value as a caption overlay inside the lightbox image.
Please note: The caption text is taken from the image alt attribute.
The toggle is only available when the native Lightbox-Effect is active. If the lightbox is disabled or the image is linked somewhere else, the caption option is disabled as well.
/wp-content/plugins/lmdm-lightbox-image-caption directory, or install the plugin through the WordPress plugins screen directly.Show caption in the Lightbox panel.No, it only extends the existing core Image and Gallery blocks.
No. It uses the image alt attribute and writes it to data-img-alt in the native lightbox overlay.
The toggle is only active when the native Wordpress Lightbox-Effect is enabled. If the image links to a media file, attachment page or custom URL, the native lightbox is not active and the option is disabled.
Yes. Enable the native Lightbox-Effect for the gallery first and then enable Show caption. The setting is passed to the gallery images when the block is rendered.
Yes, it loads one small CSS file that displays the data-img-alt value as a pseudo element in the native lightbox overlay.
The additional toggle and frontend caption output disappear. Existing Image and Gallery blocks continue to work as normal core blocks.
The Wordpress-User "nicmare" vibe coded it. Means he had the idea of the plugin and uses AI to craft the code.