ਵੇਰਵਾ
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.
ਸਮੀਖਿਆਵਾਂ
There are no reviews for this plugin.
ਯੋਗਦਾਨੀ ਤੇ ਵਿਕਾਸਕਾਰ
“FoA Featured Image – Show Caption” is open source software. The following people have contributed to this plugin.
ਯੋਗਦਾਨੀ“FoA Featured Image – Show Caption” ਦਾ ਆਪਣੀ ਭਾਸ਼ਾ ਵਿੱਚ ਅਨੁਵਾਦ ਕਰੋ।
ਵਿਕਾਸ ਕਾਰਜ ਵਿੱਚ ਰੁਚੀ ਰੱਖਦੇ ਹੋ?
Browse the code, check out the SVN repository, or subscribe to the development log by 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
