July 12, 2021 at 1:03 pm
#90356
Theme Horse Support Team
Keymaster
Hi sakeus.berg,
Currently there is no option to show caption on featured image. The option will be soon available on our next Theme Update.
For now you do the below instruction to get Featured Image Caption.
Please go to ‘Theme Directory > template-parts > content.php’ file on line no: 34. you will find the below code.
</figure><!-- .post-featured-image .page-single-img-wrap -->
Now replace the above mentioned code with the below provide code.
<figcaption class="featured-image-caption"><?php echo get_the_post_thumbnail_caption(get_the_ID()); ?></figcaption>
</figure><!-- .post-featured-image .page-single-img-wrap -->
after replacing the code save the file and please go to ‘Appearance > Customize > Additional CSS’ and paste the below Custom CSS Code.
.post-featured-image.page-single-img-wrap {
overflow: hidden;
}
.post-featured-image.page-single-img-wrap .featured-image-caption {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 50px 25px 15px;
color: #ffffff;
background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.5));
}
@media (max-width: 767px) {
.post-featured-image.page-single-img-wrap .featured-image-caption {
padding-left: 15px;
padding-right: 15px;
}
}
Thanks