Return to Support

Featured Image thumbnail for post is cropping

Home Forums Graphene WordPress theme Support Featured Image thumbnail for post is cropping

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10447
    Kailash
    Participant

    Hello,

    I am using below function to show featured image before post content.

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

    but the image height is cropping in the post to 198px

    how can i increase it to show full height?

    example: http://www.sendmesms.in/na-chaaho-itna-judai-se-dar-lagta-hai

    #46157
    Syahir Hakim
    Keymaster

    You can specify the size to be used as an argument to the the_post_thumbnail() function:

    <?php the_post_thumbnail( 'full' ); ?>

    #46158
    Kailash
    Participant

    Thanks,

    its worked…

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.