Support

Home Forums Event Espresso Premium Remove Event Times

Remove Event Times

Posted: April 24, 2018 at 5:40 pm

Viewing 2 reply threads


mchoffy

April 24, 2018 at 5:40 pm

EE 4.9.61p & WP 4.9.5:
I would like to remove the times from the events while keeping the date. The way the time is displayed is confusing. The multi-day workshop starts at 8am the first day and ends at 12pm the last day. However the way it displays it appears that the workshop is only 8am to 12pm each day. Below is an example.

Workshop
August 14, 2018 – August 16, 2018
8:00 am – 12:00 pm

Can you help?

Michael


Josh

  • Support Staff

April 25, 2018 at 9:04 am

Hi Michael,

You can add this code snippet to remove those:

add_filter(
    'FHEE__espresso_list_of_event_dates__time_format',
    'time_format_event_datetimes'
);
function time_format_event_datetimes(){
    return ' ';
}
// add some style to clean up the date display 
add_action('wp_enqueue_scripts', 'my_add_inline_styles_for_ee_datetime_list', 11);
function my_add_inline_styles_for_ee_datetime_list(){
    $custom_css  = '.ee-event-datetimes-li .dashicons-clock {display:none;}';
    $custom_css .= '.download-iCal-frm {margin: 0}';
    wp_add_inline_style('espresso_default', $custom_css);
}

You can add the above to a functions plugin or into your WordPress theme’s functions.php file.


mchoffy

April 28, 2018 at 4:17 pm

Josh,

Worked perfectly, thank you!

Michael

Viewing 2 reply threads

The support post ‘Remove Event Times’ 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