Plugin Author
LBell
(@lbell)
Try using views="dayGridMonth, dayGridWeek" or views="dayGridMonth, timeGridWeek"
The initial_view option seems unnecessarily restrictive*, so I’ll work on making that more permissive.
Hope that helps!
*Currently in initial view is restricted to: dayGridMonth, listDay, listWeek, listMonth, listYear, listCustom
Plugin Author
LBell
(@lbell)
Thread Starter
Filippo
(@filippologli)
Amazing!
That’s exactly what I was looking for, thanks a lot!
Also the initial_view fix worked out well for the moment.
Thanks for your help!
Thread Starter
Filippo
(@filippologli)
I just noticed one issue though. On mobile it reverts to the monthly view (though it’s not even specified in “views”) while it should be list. My arguments:
views="dayGridWeek" initial_view="dayGridWeek" enforce_listview_on_mobile="true"
Plugin Author
LBell
(@lbell)
Yeah, mobile browsers seem to treated differently by FullCalendar than “responsive” viewports. I’ll do some digging.
Thread Starter
Filippo
(@filippologli)
Thanks buddy!
To get the job done with the ugly iframes provided by Google Calendar I used 2 iframes, one with a weekly view, the other with a list/agenda view and hid one or the other alternatively with CSS depending on screen size. I tried the same with your shortcode (after enclosing it in a span tag with an ID I could point to in CSS) but it doesn’t work, one of the 2 calendars doesn’t show (stuck on Loading…)