• Resolved mjugarte

    (@mjugarte)


    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support tristan083

    (@tristan083)

    Hi @mjugarte ,

    Thank you for reaching out.

    I’ve checked your events page’s source and it seems like a third-party plugin is interacting with this page. Do you happen to be using the Events Widgets For Elementor And The Events Calendar plugin? This could be the reason the code snippet wasn’t working.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It appears that there hasn’t been any recent activity on this thread, so we’ll consider it resolved. However, if you have any additional questions or concerns, feel free to start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.