跳到内容

FoA Featured Image – Show Caption

v1.0.0

ivans3m · 2025年10月2日 上架

Adds caption functionality to Featured Image blocks with a simple checkbox setting.

正在使用
30+
评分
暂无
累计下载
659
最近更新
2025年10月2日
需要 WordPress 5.0+已测试到 6.8.13PHP 7.0+

贡献者

FoA Featured Image – Show Caption is a simple WordPress plugin that extends the core Featured Image block with caption functionality. When enabled, it displays the image caption (or title if no caption exists) below the featured image.

Key Features:

  • Adds a “Show Caption” checkbox setting to the Featured Image block
  • Displays the image caption (or title if no caption) below the featured image
  • Works with the Gutenberg block editor and templates
  • Clean, minimal styling that works with most themes
  • Right-aligned caption with light grey color

How it Works:

  • The plugin extends the core Featured Image block with additional settings
  • When “Show Caption” is enabled, it checks for a caption on the featured image
  • If no caption exists, it falls back to using the image title
  • The caption is displayed in a <div class="featured-image-caption"> element
  • Works with both regular posts/pages and WordPress templates

Styling:

The plugin includes default CSS styling for the caption:
* Text aligned to the right
* Light grey color (#999)
* Italic font style
* Small font size

You can easily customize the appearance by targeting the .featured-image-caption class in your theme’s CSS. The plugin uses standard CSS specificity, so your theme styles will override the defaults.

Plums

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

导航

说明

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

© 2026 Plums