Widget – Separate Date and Time

Home Forums Calendar Products Events Calendar PRO Widget – Separate Date and Time

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #27079
    Chad
    Participant

    I have created an override file and succefully removed the end date on the widget. Now I want to separate the Date and Time so that events in the widget show on different lines like this:

    Date
    Time
    Event Name

    #27081
    Jonah
    Participant

    Hi Chad,

    Which widget?

    – Jonah

    #27082
    Chad
    Participant

    I have calendar pro. Im using it on the homepage and in the interior pages on the right bar. http://wp.stephen.org/

    #27146
    Jonah
    Participant

    Hi Chad,

    Ok, this is for the Advanced Events List Widget. All you need to do in your override file is replace this line:

    echo tribe_get_start_date( $post->ID, $start );

    …with:

    echo tribe_get_start_date( $post->ID, false, 'M' );
    echo tribe_get_start_date( $post->ID, false, 'd' );
    echo tribe_get_start_date( $post->ID, false, 'Y' );
    echo tribe_get_start_date( $post->ID, false, 'g:ia' );

    …which will separate out all the date/time components. You can easily wrap these with whatever HTML you want too. Does that help?

    – Jonah

    #27174
    Chad
    Participant

    What file will I see the line above to replace?

    #27179
    Jonah
    Participant

    Ooops, sorry for not specifying that. It’s in /wp-content/plugins/events-calendar-pro/views/events-advanced-list-load-widget-display.php on line 46.

    Let me know if you need anything else.

    – Jonah

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Widget – Separate Date and Time’ is closed to new replies.