Show past events only, disable 'Next Events' link

Home Forums Calendar Products Events Calendar PRO Show past events only, disable 'Next Events' link

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1364132
    Susan Lewenz
    Participant

    Hi,

    We are creating a separate page for past events, calling it as ‘Archive’. It works fine, by using /past or list/?tribe_event_display=past and list all past events as intended.

    However, what we don’t want is user to navigate to ‘upcoming events’ by clicking on ‘Next Events’. Is there a way to disable/remove the “Next Events” link.

    Thanks

    #1364653
    Victor
    Member

    Hi Susan!

    Thanks for reaching out to us! Let me help you with this topic.

    You can achieve that by hiding the navigation links adding the following css styles to your active theme’s style.css file or by adding them via the WordPress customizer by going to your wp-admin > Appearance > Customize > Additional CSS

    #tribe-events-footer .tribe-events-sub-nav, #tribe-events-header .tribe-events-sub-nav {
        display: none;
    }

    Bear in mind this will also hide them in all other list views. If you only want to hide it for the past events, you can make a template customization by following one of the methods described in our Themer’s Guide > https://theeventscalendar.com/knowledgebase/themers-guide/

    Let me know if it works for you and if you have other questions 🙂

    Best,
    Victor

    #1365252
    Susan Lewenz
    Participant

    Thanks Victor that helped..

    Another question i have is, how do i list all the events both upcoming and past in single list view. Basically show past events if there is no upcoming events and show upcoming events if they are present. We don’t want to show empty page to our users.

    #1365912
    Victor
    Member

    Hey Susan!

    I’m glad to know that helped!

    The default behaviour is not to show events if there are no upcoming events, and provide a Previous Events link so you can navigate past events.

    Modifying that behaviour would involve some custom coding, which we can’t provide support for > https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/

    That said, we always like helping out and at least pointing our user into the right direction as much possible. So, if you decide to customize that behaviour and bump into any questions, let us know and we’d be happy to answer.

    Best,
    Victor

    #1379972
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Show past events only, disable 'Next Events' link’ is closed to new replies.