I don't want featured image to show on homepage

Viewing 5 posts - 1 through 5 (of 5 total)
  • #17171
    Lisa
    Participant

    Hi, I only want the featured image to show in either search results or when browsing through tags & categories. Basically, I don’t want it to show on my home page. How do I rule this out for the index?

    #17179
    Daniel Tara
    Keymaster

    You’ll have to open each content-*.php file and wrap the call to pinboard_post_thumbnail(); in an if( ! is_home() ) conditional.

    #17182
    Lisa
    Participant

    I don’t really understand. I know which content files you’re referring to, but I don’t understand the actual coding. I see the part that says pinboard_post_thumbnail(); But do I put the if( ! is_home() ) in it (if so, how?), or what exactly? I’m a little lost.

    #17194
    Daniel Tara
    Keymaster

    You need to put it right before that function call.

    #17232
    Lisa
    Participant

    Still not working either. Can you copy/paste the actual code string I need to use? I don’t understand where / how I should use if( ! is_home() ) I’ve tried it in every way I can think of, but it doesn’t seem to work, no matter what I try.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.