跳到内容

LMDM Lightbox Image Caption

v1.0.0

Nic · 2026年6月15日 上架

Adds a lightbox-only image caption toggle for core Image and Gallery blocks.

正在使用
20+
评分
暂无
累计下载
382
最近更新
2026年7月10日
需要 WordPress 6.9+已测试到 7.0.9PHP 8.0+

贡献者

截图

Lightbox panel with Show caption toggle in the Image block and Gallery block
Lightbox panel with Show caption toggle in the Image block and Gallery block
insert desired caption in alternative text field
insert desired caption in alternative text field
activate core lightbox-effect in block link options
activate core lightbox-effect in block link options
caption slides in from bottom with blurred background
caption slides in from bottom with blurred background

WordPress ships with a native Lightbox-Effect for image blocks. This plugin adds one tiny additional option to the core image and gallery blocks: 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.

Plugin Features

✔ adds a new toggle Show caption to the core Image block
✔ adds the same toggle to the core Gallery block
✔ the toggle can only be enabled when the native Lightbox-Effect is active
✔ ships with German translation files for the editor toggle
✔ uses the image alt attribute as value for data-img-alt
✔ adds the attribute only to the enlarged image figure in the lightbox
✔ supports galleries by passing the gallery setting to the nested image blocks
✔ outputs the value with a lightweight frontend CSS pseudo element
✔ uses no new block and does not replace the existing Image or Gallery blocks

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums