• Resolved nehagrover027

    (@nehagrover027)


    Want to show all months despite of number of events in that month. It used to work in previous versions of the plugin where it showed a message “there are no events”, but now its not working at all. Please help.!

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Darian

    (@d0153)

    Hi @nehagrover027

    Thanks for reaching out.

    Could you try adding this snippet code and see if that helps?

    add_filter(
        'tribe_events_views_v2_show_latest_past_events_view',
        function( $show, $view_slug, $view_object ) {
            // We want to disable them all!
            return false;
        },
        10,
        3
    );

    If you’re unfamiliar with coding, you can use the Code Snippets plugin, which removes the need to add custom snippets to your theme’s functions.php file.

    I hope that helps, and let me know if you have further concerns.

    Thread Starter nehagrover027

    (@nehagrover027)

    Hi Darien,

    Thanks for your reply. I tried adding that code snippet in child theme’s functions.php but it has not solved the issue. You can see on this page: https://dev-neahmaorg.pantheonsite.io/events/month/2024-05, we still can’t go past May 2024, as there are no events in future months. But the client still wants to show months calendar view, even better if a message can be shown like “There are no events in this month”. I’m sure this used to be a feature in earlier versions of the plugin as I’ve seen this working. Can you please suggest what I’m doing wrong here.?

    Thread Starter nehagrover027

    (@nehagrover027)

    Hi Darien,

    Did you you get a chance to look at my previous comments.? I would highly appreciate your help in this as client is getting furious about closing this task.

    Plugin Support Darian

    (@d0153)

    Hi @nehagrover027

    I think the easiest way to bypass this is to create an event scheduled for 2030? If that is not an option, you can try to override this template:

    the-events-calendar/src/views/v2/month/top-bar/nav.php

    by copying it to

    [your-theme]/tribe/events/v2/month/top-bar/nav.php

    From there, you can update the line #32.

    I hope this helps, and please let me know if you have further questions or concerns.

    Plugin Support Darian

    (@d0153)

    Hi there,

    It seems like this thread has been quiet for a bit, so we’ll go ahead and mark it as resolved. However, if any further questions or concerns come up, please don’t hesitate to start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Next month link not working with no events’ is closed to new replies.