Single Event template remove meta modules for specific category (webinars)

Home Forums Calendar Products Events Calendar PRO Single Event template remove meta modules for specific category (webinars)

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1370245
    Carina Aldridge
    Participant

    I’ve created a duplicate of the event single-event.php in my child theme and my edits are working. I want to customize the single event page to remove the meta modules if the event has the “Webinar” category. Is there a help topic on how to add an if statement based on event category?

    Thanks

    #1370503
    Jennifer
    Keymaster

    Hi Carina,

    Sure thing! Take a look at tribe_event_in_category(). Using this, your if statement would look something like:

    if ( tribe_event_in_category( 'cat-slug', $event_id ) ) {
    //do this
    }

    You can replace “cat-slug” with the slug for your category. Let me know if that helps!

    Thanks,

    Jennifer

    #1373038
    Carina Aldridge
    Participant

    This is what I was looking for. Thank you

    #1373567
    Jennifer
    Keymaster

    Great! I’ll go ahead and close out this thread, but if you have any other questions, please feel free to open up a new one!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Single Event template remove meta modules for specific category (webinars)’ is closed to new replies.