• I haven’t been able to find a method that hides featured images from blog posts. I installed the recommended plug-in and it doesn’t work.

    I tried various CSS snippets people had posted in response to other questions about this, and they did not work either. Right now it is showing HUGE on the blog page, and twice on the home page.

    Please advise.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter flyingscottie

    (@flyingscottie)

    No one?

    flyingscottie, I have no idea if my solution is “professional” – but at least it works for me. I copied the content.php file from ../themes/twentyseventeen/template-parts/ into my childtheme (make sure you have an identical subdirectory structure) and erased 3 lines.

    Find this code:

    <?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
    	<div class="post-thumbnail">
    		<a href="<?php the_permalink(); ?>">
    		<?php the_post_thumbnail( 'twentyseventeen-featured-image' ); ?>
    		</a>
    	</div><!-- .post-thumbnail -->
    <?php endif; ?>

    and get rid of the 3 middle lines, to make it like this:

    <?php if ( '' !== get_the_post_thumbnail() && ! is_single() ) : ?>
    	<div class="post-thumbnail">
    	</div><!-- .post-thumbnail -->
    <?php endif; ?>

    In case you find a better solution, please let me know. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Hide featured image’ is closed to new replies.