WordPress.org

Ready to get started?Download WordPress

Forums

Decode
[resolved] Featured image in full post view (4 posts)

  1. marcinhinz
    Member
    Posted 3 months ago #

    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

  2. Scott Smith
    Member
    Theme Author

    Posted 3 months ago #

    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">.

  3. Scott Smith
    Member
    Theme Author

    Posted 3 months ago #

    This may also become an official feature in the future.

  4. marcinhinz
    Member
    Posted 3 months ago #

    Great :)
    Thank you!

Reply

You must log in to post.

About this Theme

About this Topic

Tags

No tags yet.