Posted: 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? |
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? |
|
|
Thanks for this https://sassystirrers.com/events/d-of-e-teenager-life-skills-cooking-course-online/ |
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. |
|
|
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? |
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. |
|
|
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. |
The one thing I can see that needs to be fixed is line 50 needs to be removed, where it has:
That’s not valid PHP code and will result in a fatal error if you try to activate the plugin. |
|
|
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.