Support

Home Forums Event Espresso Premium Remove Event Times Reply To: Remove Event Times

Reply To: Remove Event Times

Author Replies
Josh # Posted on 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.

Do NOT follow this link or you will be banned from the site!