Posted: June 21, 2018 at 6:31 pm
|
Hi there, My client’s business is a retreat center where there are no specified times, the visitors come to the retreat, check in and then they are there for a number of days. How do I remove the times for the event: And just have it say “All Day Event” Thanks |
Hi Geej, The function used to output the datetime details can be overridden by adding your own event to a custom functions plugin, for example, this: https://gist.github.com/joshfeck/3673d6cec882edba8abd Placed in a custom functions plugin: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/ Will remove the times from the output. It can be modified to output “All Day Event” but that would then happen for every event, so are you 100% sure the client will never have an event that has specific start and end times? |
|
|
Hi Tony, I looked in the forums and there are a number of posts of people asking for this option. No, I do not want to change this so it is always on “no datetime”. I would like to have the option in the events area where I could just check a box that says, “All Day Event”. And that would remove the time. My client has some events that are all day and some that are for a specific time. It’s really typical in the events world that I work in. Can you guys work on that as a feature? All of the events plugins I have worked with, even the free ones have this option. Thanks, |
“No datetime”? The function removes the times from the output, it does not output “No datetime”.
Whilst I can add this as a feature request, currently its unlikely to be added to the plugin ‘soon’ as we are focusing on other areas of the plugin and have not had many requests for this feature. This could also be done using custom fields on the event and override the I can mock up a simple example of this if that will work for you? Edit – fixed a typo, added in italics |
|
|
Hi Tony, Yes if you could create a mock up of a simple example for me that would be wonderful! Thank you, |
Something like this – https://gist.github.com/Pebblo/3fd39bccf1c4fbc2b3324ae236229ffa If you add a ‘hide-event-times’ custom field to the event and set it to anything it will hide the times on that event – https://monosnap.com/file/erTswaZFn1m8gq19WE1DxY8BkZpH73 |
|
|
Hi Tony, Thanks immensely for that! I set it up and it worked like a charm! Best Regards, |
The support post ‘Setting time for all day events’ 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.