Hi there,
first add this PHP Snippet:
add_action( 'post_thumbnail_html', 'db_auto_single_featured_description', 10 );
function db_auto_single_featured_description( $html ) {
$get_description = get_post(get_post_thumbnail_id())->post_excerpt;
if ( is_single() && !empty($get_description) ){
$html .= '<div class="wp-caption">'. $get_description . '</div>';
}
return $html;
}
Adding PHP: https://docs.generatepress.com/article/adding-php/
Then add this CSS:
.featured-image {
position: relative;
}
.featured-image .wp-caption {
position: absolute;
right: 20px;
bottom: 20px;
line-height: 1.2em;
padding: 5px;
background-color: #000;
color: #fff;
}