• Resolved valgosais

    (@valgosais)


    In twenty fourteen how do I hide the featured image (which I need for sharing options) of specific category post?

    Any help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator bcworkz

    (@bcworkz)

    Use the ‘post_thumbnail_html’ filter to suppress output if the post is in that specific category. Should work in any theme BTW.

    Thread Starter valgosais

    (@valgosais)

    Thankyou man!

    I solved it in this way

    /*hides featured image in category view*/
    .category-50 .post-thumbnail img {
            display: none;
    }

    Of course my category was nr. 50. That’s a variable.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide featured image to posts in a specific category’ is closed to new replies.