Posted: May 30, 2022 at 7:44 pm
Hi, On the EE Calendar, we would like to stop people to see “past” events. Is there some way to stop that? Do you have any code solution we can use? Perhaps a hook that I can use to stop back-navigation from the current day/month/week to past times? Thanks! |
|
Hi there! Thanks for contacting us. To check your setup, could you please provide the website details through this URL:https://eventespresso.com/send-login-details/ ? Thanks! |
|
Hi Joao, thanks for your reply. I am not sure why login details are required for this support request. Let me explain it again: Of course, folks should be able to book, and thus navigate _forward_ in to the future. Thus, I cannot just hide the back button with CSS since it would become impossible to navigate back once a visitor has navigated forward. My question as a developer working for said business is, if there is some hook, or perhaps JS event, that we can use to hide the back button on first page load, but show it when folks are navigating forwards, and hide it again when they reach the “current month”. This should be a fairly common request from a business point of view I guess, and I was wondering if you have some options or suggestions to do that. Thank you. |
|
Hi there, We don’t need login credentials for this ๐ The calendar does indeed have the option for hiding expired events by using a shortcode parameter, on the above page change the shortcode to use the show_expired parameter, like this:
That should remove them from the query rather than hiding/removing them afterwards. |
|
Excellent, thanks a lot, this worked just fine. |
|
You’re most welcome. Any further questions just let us know ๐ |
|
The support post ‘Limit calendar view to "current and future" day/week/month’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.