Hi there,
Try this solution:
1. Add this PHP code to your site to create a shortcode [featured_img_caption]
:
add_shortcode( 'featured_img_caption', function() {
ob_start();
echo '<div>'. get_post(get_post_thumbnail_id())->post_excerpt. '</div>';
return ob_get_clean();
} );
Adding PHP: https://docs.generatepress.com/article/adding-php/
2. In your content template, add a shortcode block with this shortcode: [featured_img_caption]
anywhere you want.
If you want to style the text, it’s better wrapper the shortcode block with a GB container block, then you can set the style for the GB contianer.