• Resolved rseone

    (@rseone)


    Hi, is there any way to remove the time (eg: @ 12:00 am) that comes after the date on event listings? I am using date_format=”custom” to display the start date and end date, but just want the time removed.

    Thanks in advance : )

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @rseone,

    Please add the following code snippet at the bottom of your active theme’s functions.php file

    function ect_remove_time_list_view( $settings ) {

    $settings[ ‘time’ ] = false;
    return $settings;
    }
    add_filter( ‘tribe_events_event_schedule_details_formatting’, ‘ect_remove_time_list_view’ );
    PLease let us know if you are still facing any issue.
    Thanks

    Thread Starter rseone

    (@rseone)

    Wow – thanks so much for the fast response, works great!

    One more thing: using “custom” for the date_format, it strips the previous html wrapped around the day and month etc to help with styling. Can you please point me in the direction where I can add this back in? Preferably in my child theme or functions (if possible).

    Many thanks!

    Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi, @rseone,

    Please share a website link so we will check the issue.

    Thanks

    Thread Starter rseone

    (@rseone)

    Apologies, it is a site under development with site restrictions.
    Here is a link to view what I am referring too below. You’ll see when in “custom” the spans wrapping the day, month and year elements are removed compared to the “full” date_format below it.

    https://eone-dev.com/test/

    Thanks

    Plugin Support Jyoti Bhandari

    (@jyoti197)

    Hi @rseone,

    Thanks for sharing the website link.
    Custom date_format is coming from the events calendar( By Modern Tribe) so we can’t coustomize anything in custom date format.

    Thanks

    Thread Starter rseone

    (@rseone)

    Ok no problem, thanks for your response : )

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove time from Event List’ is closed to new replies.