Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    I’m afraid there isn’t a template for this. The widget calendar needs updating at some point. But the relevant file is: https://github.com/stephenharris/Event-Organiser/blob/master/classes/class-eo-calendar-widget.php

    Thread Starter Savage

    (@timsavage)

    Hi Stephen

    Many thanks for that, I’ve located the following bit int he code but not sure what I need to change for the Mon Tues Wed display

    ` $head = “<thead><tr>”;
    for ( $d=0; $d <= 6; $d++ ):
    $day = $wp_locale->get_weekday( ($d + $start_day ) % 7 );
    $day_abbrev = $wp_locale->get_weekday_initial( $day );
    $head .= sprintf( “<th title=’%s’ scope=’col’>%s</th>”, esc_attr( $day ), esc_html($day_abbrev ) );
    endfor;
    $head.=”</tr></thead>”; `

    Any help gratefully received

    Thanks

    Tim

    Plugin Author Stephen Harris

    (@stephenharris)

    Change

    $day_abbrev = $wp_locale->get_weekday_initial( $day );

    To something that will give you ‘Mon’, ‘Tue’, etc.

    $day_abbrev = $wp_locale->get_weekday_abbrev( $day );

    will do.

    Thread Starter Savage

    (@timsavage)

    Hi Stephen,

    Thats ace – thanks for such a swift reply!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change M,T, W, T, F, S, S on widget claendar’ is closed to new replies.