Forum Academy Marketplace Showcase Pricing Features

Set calendar to week view while still keeping month/week/day

Here is a simple solution to automatically set the calendar view to week while still maintaining the options for month/week/day.

Do when calendar is visible:

Run javascript:


What is this doing? It is identifying the button for week and clicking it when the calendar is visible for the first time. I tested it on mobile and it seems to be working. I had maybe one or two attempts where it didn’t switch on the first page load but did every page load after. It might have to do with the number of events on the calendar. My guess is that a short “pause before next action” before the JavaScript might fix it, but I’m just gonna roll with this as is for now.

Note, you can change it to default to day by changing the “fc-timeGridWeek-button” in the JavaScript to “fc-timeGridDay-button”