plugin-icon

FoA Featured Image – Show Caption

作者:ivans3m·
Adds caption functionality to Featured Image blocks with a simple checkbox setting.
版本
1.0.0
活跃安装
20
最后更新
Oct 2, 2025
FoA Featured Image – Show Caption

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.

免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.8.5
这个插件是可用的下载,适用于您的站点。