Thanks so much! I am getting some kind of error. Not sure why. It was missing some brackets, so I added them in. This is what I tried:
add_filter( ‘gettext’, ‘events_to_classes’ );
function events_to_classes( $txt ) {
//Only override the text on month view
if( is_callable( ‘tribe_is_month()’ ) && is_callable( ‘tribe_is_week()’ ) && is_callable( ‘tribe_is_day()’ ) ) {
if( tribe_is_month() || tribe_is_week() || tribe_is_day() ) {
return str_replace( ‘Events for’, ‘Classes in’, $txt );
}
return $txt;
}
}