Support » Theme: Minimal Blocks » Featured image and image caption

  • aseverirene


    Hi there,

    Just to let you know that in case featured image has a link in image description, the image caption shows also the HTML.

    I changed it this way in content.php:

    <?php if ( $caption = get_post( get_post_thumbnail_id() )->post_excerpt ) : ?>
    <div class="img-copyright-info"><?php echo $caption;  ?></div>
    <?php endif; ?>

    Thanks for your attention.

    Kind regards,

    The page I need help with: [log in to see the link]

  • The topic ‘Featured image and image caption’ is closed to new replies.