Changing text for NO EVENTS results
-
Hi! I’m using the free verison of The Events Calendar, and trying to change the text shown when there are no upcoming events. Right now it shows: “There is no Event”. I’d like it to show: “There are no events scheduled at the moment, please check later.”
I’ve tried the following code in CODE SNIPPET (PHP) to no avail:add_filter ( ‘tribe_events_views_v2_view_messages’, function ( $messages ) {
if (isset($messages[‘notice’])) {
$index = array_search ( ‘There is no Event’, $messages[‘notice’], true );
}
if (isset($index) && $index !== false) {
$messages[‘notice’][$index] = ‘There are no events scheduled at the moment, please check later.’; // Your custom message
}
return $messages;
});The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.