The week view starts on the screen with the earliest event – for example, 10:00 am that Wednesday. However, when I scroll up within the week window, the early morning hours come into view. I do not want to show times before 7:00 am.
I do I set a starting point for displaying the hours in the week view?
In order to limit the week view calendar hours, try adding something like this to your theme’s functions.php file. You may have to edit the times to suit your needs. // Limit the Calendar hours to start at 7am
function limit_calendar_hours($hours) {
foreach ($hours as $hour => $formatted) {
if (6 < $hour) {
$limited_hours[$hour]=$formatted;
}
}
return $limited_hours;
}
add_filter('tribe_events_week_get_hours', 'limit_calendar_hours');
Let me know how it goes!