• Hi,

    I’ve been looking everywhere and have found some threads that have helped others but no matter what I do, I can’t remove my featured images from my post without removing them completely from the site or removing all of my content too.

    I’ve tried removing <?php if ( has_post_thumbnail() ) : ?> from my loop.php file (according to my theme’s support. I’m using Themify Base) but it removes EVERYTHING.

    Please help, it’s driving me insane.
    my site is https://www.thelyricstolife.com.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey, you could try to wrap a conditional statement around the <?php if (has_post_thumbnail()): ?> block. That will specifically affect the post type ‘post’. Because now the loop.php file is probably being used for all content types.

    It should look something like this:

    <?php if (!is_singular( 'post' ) {
    //the thumbnail code
    } ?>

    This renders the thumbnail code on all post types singular pages except for the posts. I haven’t tested it. Let me know if it worked.

    Thread Starter thelyricstolife

    (@thelyricstolife)

    I altered a code I found a few days ago and put it in my custom css plugin and it seems to work!

    If it stops working, I’ll try yours. Thank you.

    This is the code I used
    .post .post-image { display: none; }

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