WP SITES

3086 Coded Tutorials & 291 Plugins

Twenty Fourteen: 3 Ways to Remove Featured Images From Home Page

There’s at least 2 ways to do remove featured images from the home page ( Post Page in Reading Settings ) of the Twenty Fourteen default theme for WordPress.

All code changes should be made in a child theme.

Note: Use the 2nd method if using Post Formats as the Twenty Fourteen parent theme contains a separate content.php file for each post format.

Twenty Fourteen with featured image

1. In the content.php file around Line 14 change this line

<?php twentyfourteen_post_thumbnail(); ?>

To this:

<?php if ( ! is_home() ) twentyfourteen_post_thumbnail(); ?>

You should copy over the file to a child theme before making the modifications.

2. Or around line 172 of the twentyfourteen > inc > template-tags.php file you could add the is_home() conditional tag so its like this:

function twentyfourteen_post_thumbnail() {
    	if ( post_password_required() || is_attachment() || is_home() || ! has_post_thumbnail() ) {
    		return;
    	}

And here’s a basic example of the home page without featured images.

remove featured image from twenty fourteen theme

3. You could also add this CSS code to your child themes style.css file.

.home .post-thumbnail img {
    display: none;
}

Leave a Reply

New Plugins