Support

Home Forums Event Espresso Premium Setting time for all day events

Setting time for all day events

Posted: June 21, 2018 at 6:31 pm

Viewing 6 reply threads


fluidbreath

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:
https://puravidaecoretreat.com/events/holistic-healing-retreat-personal-transformation-in-northern-california/

And just have it say “All Day Event”

Thanks
Geej


Tony

  • Support Staff

June 22, 2018 at 5:08 am

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?


fluidbreath

June 22, 2018 at 11:58 am

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,
Geej


Tony

  • Support Staff

June 22, 2018 at 1:46 pm

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”

“No datetime”?

The function removes the times from the output, it does not output “No datetime”.

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.

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 espresso_list_of_event_dates output based on if that custom field is set or not.

I can mock up a simple example of this if that will work for you?

Edit – fixed a typo, added in italics


fluidbreath

July 1, 2018 at 12:20 pm

Hi Tony,

Yes if you could create a mock up of a simple example for me that would be wonderful!

Thank you,
Geej


Tony

  • Support Staff

July 2, 2018 at 3:55 am

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


fluidbreath

July 2, 2018 at 2:16 pm

Hi Tony,

Thanks immensely for that! I set it up and it worked like a charm!

Best Regards,
Geej

Viewing 6 reply threads

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.

Event Espresso