Posted: January 23, 2018 at 2:31 pm
|
We have some events that are all-day events. I was surprised that EE does not support all-day events by default, but we were able to make it work by hooking into the “espresso_list_of_event_dates” function and removing the start/end times if they are the same time. For example, if you set the start time as 1:00am and the end time as 1:00am, then it won’t output the times for that event. That works fine for us. However, this doesn’t affect the Calendar add-on. Is there a way to do something similar for the calendar times? I checked out calendar module php file, but did not see a pluggable function. This seems to be the relevant part of the code in that file: `$startTime = ‘<span class=”event-start-time”>’ . $datetime->start_time($this->config()->time->format) . ‘</span>’; if ( $this->config()->time->show && $startTime && ! $pswrd_required ) { And this for the popup: `// show time ? Is this possible? |
|
(sorry, not sure why my code didn’t format properly above) |
Hi there, Which version number of the Calendar add-on are you using? It looks like you are using an older version of the calendar as v3.2.9+ has a filter in the above code you could have used to alter the time. If you update to the latest version you’ll find the You’ll also find the |
|
|
Ah, ok! I forgot that the add-on updates don’t show up in our WordPress plugin list. I will download the most recent version and give it a shot. Thanks! |
The support post ‘How to hide event times on calendar’ 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.