badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Featured image on single post

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #78800
    Ahmed Voloder
    Participant

    Hello,
    I cannot find anywhere option to display featured image when viewing single post.

    Am I missing something?

    #78864

    Hi Ahmed,

    For this you have to customize the theme main code.
    Just go to theme directory > inc > structure > content-extensions.php on line no:294 you will find <article> tag below to this tag just paste below code.

    <?php if ( has_post_thumbnail()) { ?>
    	<img style="margin-bottom: 20px;" src="<?php echo esc_url(get_the_post_thumbnail_url(get_the_ID(),'full')); ?>" alt="">
    <?php } ?>

    Note: We recommended you to create a child theme and paste above code rather than adding it into the theme main code.

    Thank you!

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.