I have a couple of questions. Is it possible to have the event time displayed both in the event list display page, as well as the event description page, underneath where the event date is shown? Also, in the “my events” page, the time of the event is displayed in 24hr time format, how can I go about changing that format to display 12hr – am/pm format (i.e. change 13:00 to 1:00 pm)? Thank you for your time.
Yes the time is possible, for instance you could copy the time code fromt he registration_page_display.php
<p class="event_time">
<?php
//This block of code is used to display the times of an event in either a dropdown or text format.
if (isset($time_selected) && $time_selected == true) {//If the customer is coming from a page where the time was preselected.
echo event_espresso_display_selected_time($time_id); //Optional parameters start, end, default
} else {
echo event_espresso_time_dropdown($event_id);
}//End time selected
?>
</p>
and paste it into the event_list_display.php file.
You would probably need to fiddle with the CSS to make it match though.
Regarding the my events time format, thank you for letting us know about that. It should pull the time format from the WordPress settings but isn’t I will raise a ticket for it.
If you cannot wait for the ticket to be resolved you could edit espresso-members/my_events_page.php at approx line 173 where it says
This reply was modified 10 years, 7 months ago by Dean. Reason: code edit to add strtotime
Viewing 0 reply threads
The support post ‘Show event time in the event list and change time format for "my 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.
Support forum for Event Espresso 3 and Event Espresso 4.