Photo View Time Details

Home Forums Calendar Products Events Calendar PRO Photo View Time Details

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #954124
    David Kaye
    Participant

    Hi all,

    I’d like to find a way to hide the time on the time-details string, but only on the Photo View.

    So, instead of APR 29 @ 4:30 PM – MAY 1 @ 9:30 AM, I’d like it to say APR 29 – MAY 1. But, when someone clicks through to the event, I’d still like to see the full time on the event page.

    Thanks so much for the help!!

    Nick

    #954142
    David Kaye
    Participant

    Looks like it’s in general.php under the events calendar plugin directory…

    $schedule = ‘<span class=”date-start dtstart”>’;
    $format = ”;
    $date_without_year_format = tribe_get_date_format();
    $date_with_year_format = tribe_get_date_format( true );
    $time_format = get_option( ‘time_format’ );
    $datetime_separator = tribe_get_option( ‘dateTimeSeparator’, ‘ @ ‘ );
    $time_range_separator = tribe_get_option( ‘timeRangeSeparator’, ‘ – ‘ );
    $microformatStartFormat = tribe_get_start_date( $event, false, ‘Y-m-dTh:i’ );
    $microformatEndFormat = tribe_get_end_date( $event, false, ‘Y-m-dTh:i’ );

    $settings = array(
    ‘show_end_time’ => true,
    ‘time’ => true,
    );

    Is there a way to write a simple call for the functions.php file to override for the photo view?

    #954160
    David Kaye
    Participant

    Solved… changed

    $settings = array(
    ‘show_end_time’ => true,
    ‘time’ => true,
    );

    to:

    $settings = array(
    ‘show_end_time’ => true,
    ‘time’ => false,
    );

    #954161
    David Kaye
    Participant

    Actually found a good solution and put this in the functions.php file instead:

    add_filter( ‘tribe_events_event_schedule_details_formatting’, ‘change_schedule_format’ );

    function change_schedule_format( array $format ) {
    $format[‘time’] = false;
    return $format;
    }

    #954162
    Brian
    Member

    I am glad to see you were able to figure it out.

    I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.

    Thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Photo View Time Details’ is closed to new replies.