Support

Home Forums Event Espresso Premium Adding a date to the title of an [EVENT_LIST] page

Adding a date to the title of an [EVENT_LIST] page

Posted: September 17, 2014 at 9:02 pm


victorsfood

September 17, 2014 at 9:02 pm

Hi, how could you edit the EE source files to add the date of the event into the title area that currently displays just the Event Title?

What is the filename of the source file that would need to be edited?


Tony

  • Support Staff

September 18, 2014 at 2:36 am

Hi,

You’ll want to copy 2 files from event-espresso/templates/

event_list.php
event_list_display.php

place those files within wp-content/uploads/espresso/templates/

The file you need to edit is event_list_display.php, on line 43 you’ll find:

" class="a_event_title" id="a_event_title-< ?php echo $event_id ?>" href="< ?php echo $registration_url; ?>">< ?php echo stripslashes_deep($event_name) ?>

You can add the event start date there, here’s an example –

" class="a_event_title" id="a_event_title-< ?php echo $event_id ?>" href="< ?php echo $registration_url; ?>">< ?php echo stripslashes_deep($event_name) ?> - < ?php echo event_date_display($start_date, get_option('date_format')) ?>

It depends on how you’d like to output the date so you may need alter that line.

Hope that helps 🙂


victorsfood

September 18, 2014 at 4:01 am

Brilliant! Worked perfectly, thanks Tony.


Tony

  • Support Staff

September 18, 2014 at 4:36 am

No Problem 🙂

I’ll mark this thread resolved, if you have any further questions just open up another thread.

The support post ‘Adding a date to the title of an [EVENT_LIST] 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Tony 5 years, 2 months ago ago

Topic Tags

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!