• Hi All,

    I know this topic has been covered, but I have yet to find a solution. I have a blog grid showing the featured image for each post, but I do not want this image to show once I click on the post and open it. I am not too savvy with these things so am not totally comfortable with altering the php file, I’ve tried the “hide feature image” plugin and I’ve tried CSS. For some reason nothing is working for me. Thanks in advance!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please post a link to a post on your site on which you want to hide the featured image.

    Hello ellebea20,
    Please add this code in your theme functions.php file

    <?php
    function hide_post_thumbnail_image( $html ) {
    if ( ( is_singular( 'post' ) && is_single() )) {
    return '';
    }
    else {
    return $html;
    }
    }
    add_filter( 'post_thumbnail_html', 'hide_post_thumbnail_image' );
    ?>

    Hope this will help you.
    Thanks

    Thread Starter ellebea20

    (@ellebea20)

    Sterndata, I have a maintenance page up at the moment so you will not be able to see it.

    Cedcommerce, I’ve tried this but unfortunately anytime I add code to a php file my website disappears and I need to into Bluehost and remove the code in order to even see my website (that’s why I mentioned above that I’m not comfortable doing that)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove featured image from post’ is closed to new replies.