• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

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;
}

Twenty Fourteen Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems