Hello,
We have found a solution to your problem.
First, create a child theme for the theme you are using. To know more about child themes please visit: https://catchthemes.com/blog/create-child-theme-wordpress/
After you have create a the child theme add the below given block of code on your child theme’s functions.php
function catchflames_post_featured_image() {
// Getting data from Theme Options
global $post, $wp_query, $catchflames_options_settings;
$options = $catchflames_options_settings;
$contentlayout = $options['content_layout'];
$sidebarlayout = $options['sidebar_layout'];
$imagesize = '';
if ( $contentlayout == 'full' ) :
return false;
elseif ( $contentlayout == 'excerpt' ) :
if ( $sidebarlayout == 'three-columns' ) :
$imagesize = 'featured-three';
else :
$imagesize = 'featured';
endif;
endif;
if ( has_post_thumbnail() ) : ?>
<figure class="featured-image">
<a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'catch-flames' ), the_title_attribute( 'echo=0' ) ) ); ?>">
<?php
the_post_thumbnail( $imagesize );
?>
</a>
<p class="caption">
<?php echo get_post(get_post_thumbnail_id())->post_excerpt; ?>
</p>
</figure>
<?php endif;
}
Hope it helps.
Best regards.