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 images won't show up

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #50427
    fran
    Participant

    Hi, none of my featured images are showing up on my pages. Even after re-adding them, they appear in the editor but not on the actual page. I’ve tried deactivating plugins to see if any of them are conflicting but to no avail.
    Any idea what might be wrong?

    #50446

    Hi fran,
    Featured image will not be displayed on single page and on pages. You can add featured image on the editor of post/page. We have designed our theme this way and featured image to display in single page is not necessary.

    So if you like to have a featured image on single page then it needs code customization.
    Go to theme folder -> inc -> structure -> conent-extension.php on line no 225 you will find this code <article class="entry-wrap"> Add below code just after this code

    <?php
    							if( has_post_thumbnail()) { ?>
    							<figure class="post-featured-image">
    								<a style="background-image:url('<?php echo esc_url(wp_get_attachment_image_url($attachment_id,'full'))?>');" href="<?php the_permalink(); ?>" title="<?php the_title();?>"></a>
    							</figure><!-- .post-featured-image -->
    							<?php } ?>

    We recommended not to change the code because if you change the code then while updating to our new version all your customisation code will be lost. So better make child theme and first unhook the functions and the edit the code.

    Child Theme

    Thank you

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