Hi there,
Thanks for reaching out. I’d be happy to help with your question.
This can be done with some customization.
First, add the following to your theme’s functions.php:
add_filter( 'post_class', 'tribe_events_add_past_class_to_events', 10, 3 );
function tribe_events_add_past_class_to_events( $classes, $class, $post_id ) {
if ( ! is_array( $classes ) ) {
return $classes;
}
if ( ! tribe_is_event( $post_id ) ) {
return $classes;
}
if ( tribe_is_past_event( $post_id ) ) {
$classes[] = 'tribe-events--is-past-event';
}
return $classes;
}
Once that is done, add this CSS either in the customizer or in your theme’s CSS file:
.type-tribe_events .tribe-events--is-past-event {
display: none !important;
}
Hope that helps! Please let me know if that works for you, or if you have any other questions.
Regards,
Sky