• Can someone tell me how to remove the duplicated featured image from the top of each blog post?

    I have to add a featured image for my homepage, but I don’t want it to show once a visitor clicks the link to read a post.

    Here’s what I’m dealing with.
    https://speakjanespeak.com/?p=3940

    See the cat at the top? I want that removed, but still set as a “featured image” so it shows correctly here… https://speakjanespeak.com/

    Make sense?

Viewing 9 replies - 1 through 9 (of 9 total)
  • It’s how your theme is set up. Youll need to adjust single.php and remove the line that displays the featured image there.

    Thread Starter noir453

    (@noir453)

    How would I find the specific line?

    Thread Starter noir453

    (@noir453)

    That seems to deal with a “thumbnail” whereas my problem is with the featured image…aren’t they different?

    Also, my single.php only contains the following::
    <?php
    /**
    * The Template for displaying all single posts.
    *
    * @package Apprise
    */
    get_header(); ?>
    <div id=”main” class=”<?php echo of_get_option(‘layout_settings’);?>”>
    <?php
    // Start the Loop.
    while ( have_posts() ) : the_post();

    get_template_part( ‘content’, ‘single’);

    endwhile;
    ?>
    </div><!–main–>
    <?php get_footer(); ?>

    I couldn’t find anything about the image here…thoughts?

    It looks like you’ll need to search inside of
    get_template_part( 'content', 'single');

    aka content-single.php

    Also, the post-thumbnail is the same as the featured image. Just another name for it.

    From the codex:

    Display the Featured Image (previously called Post Thumbnails) for the current post, as set in that post’s edit screen.

    Thread Starter noir453

    (@noir453)

    OK… I think I’m on to something. haha

    Here’s what I found in content-single.php that mentioned “thumbnail”. How do I know what part to remove?

    if (has_post_format( ‘gallery’ )) {
    apprise_gallery_post();
    } else {
    if ( has_post_thumbnail() ) {
    if (has_post_format( ‘video’ )) {
    } else { ?>
    <div class=”thumb-wrapper”>
    <?php the_post_thumbnail(‘full’); ?>
    </div><!–thumb-wrapper–>
    <?php

    To remove the duplicate image, I think you’ll want to remove:

    <div class="thumb-wrapper">
       <?php the_post_thumbnail('full'); ?>
    </div><!--thumb-wrapper-->

    Thread Starter noir453

    (@noir453)

    Hooray! You’re a genius. Thanks a bunch!

    No problemo,

    Happy WordPress-ing, Jane!

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