Support

Home Forums Event Espresso Premium Is it possible to remove date ranges for events?

Is it possible to remove date ranges for events?

Posted: July 19, 2018 at 1:38 am


jokadesign

July 19, 2018 at 1:38 am

We have an online course that is ongoing, so the event dates are confusing our customers. Is it possible to remove the ‘from’ and ‘to’ indication?


Tony

  • Support Staff

July 19, 2018 at 4:36 am

Hi there,

Yes, you can, but it is only for one specific event?

You’ll need to either hide or remove the event times from the front end event output and also create a custom message template that doesn’t display the event times.

Can you link me to the event that you’d like to hide the times on so I can take a look?


jokadesign

July 19, 2018 at 5:09 am

Thanks for this

https://sassystirrers.com/events/d-of-e-teenager-life-skills-cooking-course-online/


Tony

  • Support Staff

July 19, 2018 at 7:19 am

Ok, to remove the date output, you can use this function:

https://gist.github.com/Pebblo/3fd39bccf1c4fbc2b3324ae236229ffa

Add that to a custom functions plugin on your site, we have some documentation on doing so here:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

Then on the event(s) you want to hide the time on, add a custom field called ‘hide-event-times’ and set it to true. That function will then remove the event times for that event and leave them visible for all others.


jokadesign

August 3, 2018 at 5:19 am

Hi. Thamks Tony. I have got as far as adding the php file as instructed (I think – see link). But it’s not showing up in the WP plug-ins. Can you help?


Josh

  • Support Staff

August 3, 2018 at 10:44 am

Hi,

Did you intend on posting a link? If you cannot see the plugin on the WP plugins page then that could be the plugin header is missing or the file was uploaded to another location other than the wp-content/plugins folder. So you can verify the plugin header is present and the file is within wp-content/plugins.


jokadesign

August 3, 2018 at 11:25 am

Hi Josh

Here’s the link I meant to send.

https://www.dropbox.com/s/7fpvi2hhe748xxh/Screen%20Shot%202018-08-03%20at%2012.21.39.png?dl=0

Can you tell me if the header is present and correct? Or is anything else wrong?

Thanks.


Josh

  • Support Staff

August 3, 2018 at 11:46 am

The one thing I can see that needs to be fixed is line 50 needs to be removed, where it has:

Sign up for free

That’s not valid PHP code and will result in a fatal error if you try to activate the plugin.


jokadesign

August 4, 2018 at 5:06 am

Thanks Josh. It’s working now!

The support post ‘Is it possible to remove date ranges for 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