A client needed the events calender to display shortened day headings in the monthly view. Here are two possible solutions:
- The following shows M T W T F S S in the monthly view:
Override the month/loop-grid.php template and, in your custom version, find this line of code:
$days_of_week = tribe_events_get_days_of_week();
Replace it with:
$days_of_week = tribe_events_get_days_of_week( true );
- The following shows MON TUE WED THU FRI SAT SUN in the monthly view:
Override the month/loop-grid.php template and, in your custom version, find this line of code:
<th id="tribe-events-<?php echo esc_attr( strtolower( $day ) ); ?>" title="<?php echo esc_attr( $day ); ?>" data-day-abbr="<?php echo esc_attr( $wp_locale->get_weekday_abbrev( $day ) ); ?>"><?php echo $day ?></th>
replace with:
<th id="tribe-events-<?php echo strtolower($day) ?>" title="<?php echo $day ?>"><?php echo substr($day, 0, 3); ?></th>