• Resolved hazyd

    (@hazyd)


    I’d like to have my featured images show on the actual post page as well as the index page. I found this question asked previously –

    Featured Image not displaying on the post pages

    This solution only places a featured image inside the text of the post. I would like to display the featured image just as it is in the index, above the title. Is this possible?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @hazyd,

    Sure thing! To achieve what you want, first follow the initial steps that Kathryn set out in the post you linked to:

    • Create a child theme using the guidance here.
    • Copy Fictive’s content-single.php file to your child theme’s directory.

    Next, find the following line in your child theme’s file:

    <?php if ( '' != get_the_post_thumbnail() && 'image' == $format ) : ?>

    The && ‘image’ == $format part of this line is checking whether your post has the image post format assigned to it and only displaying a featured image if that check returns true. We can remove this check in order for the featured image to display at the top of all your posts:

    <?php if ( '' != get_the_post_thumbnail() ) : ?>

    Can you give that a try and let me know how you get on?

    Thread Starter hazyd

    (@hazyd)

    Just did as you said and it works perfectly. Thanks again for your quick help!

    I’m glad to hear it worked out well for you! You know where to find us if any extra questions come up, too. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured Image on Single Posts’ is closed to new replies.