There isnt a date format in that code by default, the date you changed is to do with checking the expired dates, so you may want to change that back just in case.
In the css_dropdown display.php file change the code there (there is actually only one line of code at the bottom) to the following:
If you want the date to be different to the rest of your site (it will follow the WordPress date setting in the Settings > General page) then you need to change it to the following and amend the dat format as needed
Hi, That worked and in case anyone is interested I also managed to add in the event start time too…
<a title="<?php echo stripslashes_deep($event_name)?>" class="a_event_title" id="a_event_title-<?php echo $event_id?>" href="<?php echo $registration_url; ?>"><?php echo event_date_display($start_date, 'd-m-Y'); ?> – <?php echo espresso_event_time($event->id, 'start_time', get_option('time_format')) ?><?php echo stripslashes_deep($event_name)?></a>
Good job and thanks for sharing your updated code!
Viewing 4 reply threads
The support post ‘Changing the Date format in the CSS Dropodown’ 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.