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.

설치

  1. Upload the plugin folder to /wp-content/plugins/
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Edit a post, page, or template and add a Featured Image block
  4. In the block settings panel, you’ll see a new “Show Caption” option

FAQ

How do I use this plugin?

  1. Add a Featured Image block to your post, page, or template
  2. Set a featured image for the post/page
  3. In the block settings panel, toggle “Show Caption” to ON
  4. The plugin will automatically display the image caption (or title) below the image

Does this work with WordPress templates?

Yes! The plugin works with both regular posts/pages and WordPress templates (like Single Post templates).

Can I customize the caption styling?

Yes, you can customize the appearance by targeting the .featured-image-caption class in your theme’s CSS.

What if my image doesn’t have a caption?

The plugin will automatically use the image title as a fallback if no caption is set.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“FoA Featured Image – Show Caption”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “FoA Featured Image – Show Caption”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0.0

  • Initial release
  • Added Show Caption toggle to Featured Image blocks
  • Displays image caption or title below featured image
  • Works with Gutenberg block editor and templates
  • Right-aligned caption styling with light grey color