Home › Forums › Calendar Products › Events Calendar PRO › Show past events only, disable 'Next Events' link
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by
Susan Lewenz.
-
AuthorPosts
-
October 16, 2017 at 7:23 am #1364132
Susan Lewenz
ParticipantHi,
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
October 17, 2017 at 8:56 am #1364653Victor
MemberHi 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,
VictorOctober 18, 2017 at 4:09 am #1365252Susan Lewenz
ParticipantThanks 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.
October 19, 2017 at 7:09 am #1365912Victor
MemberHey 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,
VictorNovember 10, 2017 at 8:37 am #1379972Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘Show past events only, disable 'Next Events' link’ is closed to new replies.
