Return to Support

how can I link featured image to its original image?

Home Forums Graphene WordPress theme Support how can I link featured image to its original image?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #10476
    Kailash
    Participant

    Hi,

    I am using below function to show featured image before post content. but the image is not clickable.

    how can I link featured image to its original image to make it clickable?

    function featured_img_thumb() {
    ?>
    <span class="post-thumbnail">
    <?php the_post_thumbnail(); ?>
    </span>
    <?php
    }
    add_action('graphene_before_post_content','featured_img_thumb');

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.