WordPress.org

Support

Support » Themes and Templates » [Resolved] Featured image in full post view

[Resolved] Featured image in full post view

  • marcinhinz
    Member

    @marcinhinz

    Hi,
    One more question. How should I edit theme to get featured image just below post title in full article view?

    I love this theme. You do a amazing work here!

    All the best.
    Martin

Viewing 3 replies - 1 through 3 (of 3 total)
  • After creating a child theme, editing the content-single file to include:

    <?php if ( has_post_thumbnail() ) : ?>
        <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
             <?php the_post_thumbnail(); ?>
        </a>
    <?php endif; ?>

    This would look best between the opening <header> and the <div class=”entry-title”>.

    This may also become an official feature in the future.

    marcinhinz
    Member

    @marcinhinz

    Great 🙂
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Featured image in full post view’ is closed to new replies.