• Resolved JohannThors

    (@johannthors)


    When I post using a featured image, it is shown at the top of the post header for every post when I’m on the blog.

    For most posts, the featured image is also the first image in the post, so it appears twice on the site. How do I stop the featured image from appearing twice?

Viewing 5 replies - 1 through 5 (of 5 total)
  • I think this might help.

    Thread Starter JohannThors

    (@johannthors)

    Thanks for the link. But that is a solution for the thumbnail appearing twice within the post.

    My issue is that the thumbnail appears on top of the post in the Decode theme when I’m on the main site.

    I checked the Decode theme on my wordpress installation and found that featured image appears in blog page on top of title.

    Featured image does not appear automatically on single post pages.

    If you want to remove the featured image from appearing in blog page, then you can remove the following code from content.php file in the theme.

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

    Does this help ?

    Thread Starter JohannThors

    (@johannthors)

    Now that worked!

    Thanks a lot, chiragswadia!

    That’s great ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Featured Image repeating’ is closed to new replies.