Support » Theme: Twenty Fourteen » How to Hide Feature Image Within Post

Viewing 5 replies - 1 through 5 (of 5 total)
  • I was also searching for this for ages…

    In style.css, add this
    .single .post-thumbnail img { display: none; }

    Hope this works for you!

    Reference:
    [Link removed]

    Thread Starter lukeguy

    (@lukeguy)

    I tried it. Didn’t work for sharkskills.com/ghostwriter

    Where exactly in style.css does it go?

    As you can see from my website (http://florencetravelblog.com) featured image is hidden on posts but shown on homepage. Is this what you wanted? It can be pasted anywhere in your child style.css.

    I have seriously no idea why the reference link was removed. It was explained very clearly on that site. This is the link again:
    http://techdwarf.com/themes/customize-twenty-fourteen-theme-wordpress/

    I had a similar issue with the twenty fourteen wordpress theme where the featured image was displaying above every post on my posts page. I had used 2014 extended to use a static front-page.

    This is the CSS I added to get the featured images displaying on my front-page but no other pages.

    .post-thumbnail img { display: none; } /* Hides featured image on all pages */
    
    .page .post-thumbnail img { display: block; } /* Un-Hides featured image on main static page */

    Works with my site but have only tested it there, hope it helps someone.

    – Custom CSS should be added to the bottom of your style.css, ideally within a child theme

    I added “.single .post-thumbnail img { display: none; }” in style.css and it worked a treat on PC and mobile, the only problem is there is no padding and the page title is hard up under the header on my PC (looks fine on mobile).

    Any help?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to Hide Feature Image Within Post’ is closed to new replies.