I have used your code snippet at https://stachethemes.ticksy.com/article/13413/ edited as below, to ensure that all presentations of the calendar are as Agenda on Mobile phones. It seems the best choice for small screens.
On larger screens, I want to choose whether the calendar is presented as Grid or Agenda, but this code snippet now over-rides that choice. I have used the shortcodes:
Hi Zhivko
I have used your code snippet at https://stachethemes.ticksy.com/article/13413/
edited as below, to ensure that all presentations of the calendar are as Agenda on Mobile phones. It seems the best choice for small screens.
On larger screens, I want to choose whether the calendar is presented as Grid or Agenda, but this code snippet now over-rides that choice. I have used the shortcodes:
the first is to present as Grid, by default, and the second to present as Agenda.
But with this code snippet (below) they both present as Grid on larger screens.
I have tried commenting out the normalView line in the code, but then the calendar doesn't appear at all.
Is there a way to set mobileView to Agenda, as below, but leave the shortcode to determine the view on larger screens?
Thank you.
Hi,
Try following snippet:
This will change the view to agenda only for mobile.
Stachethemes Developer
Perfect!
Thank you.