• I’m using this plugin for the first time, loving it so far! Thanks for all the work you’ve put into it Joe, really appreciate it.

    For my use case it would be amazing if I could switch from the default grid view to the list view already on tablet and not only on mobile. Is this at all possible?

    I haven’t seen any setting in the dashboard and my attempts to tweak the plugin’s default behaviour with additional PHP snippets have not succeeded so far. I’m not super familiar with PHP, so maybe I’m simply missing something.

    Any hint in the right direction is greatly appreciated.

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Joe Dolson

    (@joedolson)

    The simplest thing to do would probably be to add a filter to the core WordPress function wp_is_mobile() that adds logic to define tablet user agent’s as being mobile.

    Doing server-side detection of different environments can be tricky, and My Calendar just uses the internal WordPress logic to check that. You can also use the My Calendar filter mc_is_mobile to customize only how My Calendar uses that function, to prevent other possible side effects from other uses of the core function.

    Thread Starter marcviladrich

    (@marcviladrich)

    Thanks for the quick reply and the tip! Alright, I’ll try to customise the mc_is_mobile function then to avoid potential side effects 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.