Support

Home Forums Event Espresso Premium Remove end date from event listing page

Remove end date from event listing page

Posted: August 27, 2024 at 12:25 pm

Viewing 1 reply thread


thegetaway

August 27, 2024 at 12:25 pm

Hi there,

Is it possible to remove the end date from the event listing previews?

Most of our events end on the same day as they started and really don’t need to see an end time in the preview. It is confusing as it looks like there are two start times for the event.

Our site https://getawaycafe.ca/

Thank you!


Sam

  • Support Staff

August 27, 2024 at 3:23 pm

Hi Chris,

For now, there are no such options to remove the end date only from the upcoming event widget. That requires editing the plugin codes.

However, if you want you can hide the date from the widget settings itself.


Rio

  • Support Staff

August 27, 2024 at 7:52 pm

The function used to output those dates is espresso_list_of_event_dates and it’s a pluggable function so you could place a copy of that in your own custom functions plugin to override the default output with whatever you prefer.

We have some documentation on creating one here:
https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/

1. Find Temmplate_tags.php (EE->public) then find this block

if (! function_exists('espresso_list_of_event_dates')) {

2. Copy the code block you need
3. Modify and make condition on how you show up the date time.

Thanks

Viewing 1 reply thread

The support post ‘Remove end date from event listing page’ 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