Опис
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.
Постављање
- Upload the plugin folder to
/wp-content/plugins/ - Activate the plugin through the ‘Plugins’ menu in WordPress
- Edit a post, page, or template and add a Featured Image block
- In the block settings panel, you’ll see a new „Show Caption“ option
ЧПП
-
How do I use this plugin?
-
- Add a Featured Image block to your post, page, or template
- Set a featured image for the post/page
- In the block settings panel, toggle „Show Caption“ to ON
- 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-captionclass 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
