Home › Forums › WoodMart support forum › Capture under Blog Featured Image
Capture under Blog Featured Image
- This topic has 9 replies, 2 voices, and was last updated 1 year, 1 month ago by
Hung Pham.
-
AuthorPosts
-
January 13, 2024 at 8:15 pm #529602
jiimmParticipantI wonder if there is any way I can display an Image Capture under the blog-featured image. Or the possibility to set all images (except woocommerce products) to always display image capture? I can see the capture under the default WP image display but cannot set it or see it under WoodMart Image or SVG.
January 15, 2024 at 1:45 pm #529882
Hung PhamKeymasterHi jiimm,
Thanks for reaching to us and appreciate your patience.
To assist you in the best possible manner, I kindly ask that you please include a screenshot that illustrates the problem in question, this will allow me to thoroughly investigate and address your concerns in a more efficient.
Regards,
January 15, 2024 at 7:12 pm #530076
jiimmParticipantPlease see the attachments!
Screenshot 01 – shows an example of a blog post featured image. And as you see there is no image capture displayed. I need to have the option to display image capture.
Screenshot 02 – shows a setting for Image or SVG. This is for simply placing the image in the blog post. As you see there is also no option to set image capture display. I need to have that option or solution, to be able to display the capture of the image.
Screenshot 03 – shows a default WP image placement that has the option to display an image capture. This is an example of what I\’m looking for in blog post featured images and the WoodMart theme \”Image or SVG\” placement option.
Attachments:
You must be logged in to view attached files.January 16, 2024 at 7:03 pm #530478
Hung PhamKeymasterHi jiimm,
Thanks for details.
I kindly request you to conduct a check by activating the default WordPress Theme, such as Storefront or Twenty Twenty-Three (Appearance > Themes) and keep WoodMart Core and Elementor or WPBakery plugins activated and see if capture is on the blog page.
Also, if you want us to add Capture to the
Image or SVG
element, you can add a feature request https://woodmart.canny.io/feature-requests and we will consider it.Regards,
January 16, 2024 at 7:49 pm #530496
jiimmParticipantYes, by switching to the default WordPress Theme the future image capture is displayed. But WoodMart theme doesn’t .
January 17, 2024 at 10:52 am #530668
Hung PhamKeymasterHi jiimm,
Please try to add to functions.php file in Child theme.
add_action('post_thumbnail_html', function ( $html ) { if ( is_single() && wp_get_attachment_caption( get_post_thumbnail_id() ) ) { $html .= '<figcaption class="wp-caption-text">' . wp_kses_post( wp_get_attachment_caption( get_post_thumbnail_id() ) ) . '</figcaption>'; } return $html; });
Regards,
January 17, 2024 at 10:30 pm #530969
jiimmParticipantGreat! The solution is working.
One more thing! At the moment the capture is showing in the middle, what if want to display the capture on the right side or left side of the image?
Thanks
January 18, 2024 at 8:39 am #531022
Hung PhamKeymasterHi jiimm,
Please add the following Custom CSS code in Theme Settings > Custom CSS > Global Custom CSS
.entry-thumbnail figcaption{ text-align: left; }
You can change to
right
value if you want.Regards,
January 18, 2024 at 8:47 am #531024
jiimmParticipantThanks, its perfect!
January 18, 2024 at 9:41 am #531034
Hung PhamKeymasterHi jiimm,
Glad to hear your issue has been resolved. Keep us in mind for future questions and concerns, we’re always here to help!
If you have a quick minute we always appreciate a 5-star rating on our theme!
https://themeforest.net/item/woodmart-woocommerce-wordpress-theme/reviews/20264492
Your feedback is the motivation to improve our work and services.
Regards,
-
AuthorPosts
The topic ‘Capture under Blog Featured Image’ is closed to new replies.
- You must be logged in to create new topics. Login / Register