Help Desk

Hide featured image from listings depending on category

  • | Permalink

    Hello!
    I’m wondering how I can hide the featured image when viewing a particular category (Concerts) as seen here: http://familyoffestivals.com/events/category/concerts/

    Any help is appreciated.

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    Hi joinfof,

    You’d probably want to start by looking at our Themer’s Guide – what you’d be interested in here of course are the templates relating to photo view.

    In this case you would probably be particularly interested in pro/photo/single-event.php and the call to tribe_event_featured_image() which takes place close to the start of that particular template. You could build your own conditional statement to control when it is used, and might for instance build on the following functions to figure out if an events category is being used and, if so, which one:

    Hope that helps!

    Posts: 18146 Topics: 17 Answers: 973
    | Permalink

    It’s been a while so I’ll mark this as complete: hope you figured something out and thanks for reaching out to us 🙂