There are a few places where you can add a conditional so dates only display if the event isn’t ongoing. For example in event_list_display.php there’s a block of code that displays a date and optionally a add to ical button. What you can do is wrap that in a PHP conditional like this:
Another place where you might remove the date display is on the single event view. The template that handles this is registration_page_display.php. You can do something similar there too:
As always, we recommend making backups before changing template files. Template files can also be copied over to /wp-content/uploads/espresso/templates to prevent being overwritten on future updates. Please see this guide for more info:
Note that some templates need to be copied over in pairs. For example, if you make a change to event_list_display.php, you’ll need to copy over its counterpart event_list.php. Also please note that if we need to make a change to a template in the next version of Event Espresso, you will want to copy this change into your custom template to stay current with the plugin.
We recommend using Diffmerge to help merge changes into custom templates.
Viewing 3 reply threads
The support post ‘Ongoing event remove date’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.