Okay
  Public Ticket #3448623
Two calendars - different standard views
Closed

Comments

  • Emilie started the conversation

    Hello!
    On my wordpress page, I need to display the same calendar in two different ways. I would like the events to remain the same, but the standard view of the first calendar should be on 'calendar'-mode and the second should be on 'Grid' mode. I have chosen calendar as the standard view in the settings menu, but I want to override this standard for the second calendar. What do you suggest that I do? I have tried to choose Grid view as the 'initial view' in the Elementor menu, but as a result, the page comes up blank when you first open it. Hope you can help!
    /Emilie

  •  783
    Zhivko replied

    Hi,

    Try this shortcode:

    [stachethemes_ec view=grid views=grid]

    Stachethemes Developer

  • Emilie replied

    Unfortunately, this does not work. 

  •  783
    Zhivko replied

    That's because you have a custom hook overriding the view rules from the shortcode here:

    8456511758.png

    This code is most likely in your theme functions.php file.

    What it does is it forces "month" view on desktop and "grid" view for mobile devices.

    If you don't need it you can delete it.


    Stachethemes Developer