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 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 sizeYou can easily customize the appearance by targeting the
.featured-image-captionclass in your theme』s CSS. The plugin uses standard CSS specificity, so your theme styles will override the defaults.文章發佈於:






