Support » Plugin: My Calendar » Feature Request: disable mobile check

  • Resolved jondaley


    Hi, I’ve been using your calendar for a while, but I don’t like how the mobile site looks, and it also conflicts with supercache, and (at least sometimes) caches the mobile site and shows it to desktop users.

    So, I modify your plugin to “return false” in mc_is_tablet() and mc_is_mobile().

    But, on every upgrade, I have to go re-apply my change, so it’d be nice if there was a configuration option that said:

    “Detect mobile platforms” <default to yes>

    And then I could turn it off.

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


    Yes, I can do that. I assume you’re using a mobile plug-in that is providing styles; you should know that you can create custom styles to target My Calendar by adding stylesheets ‘mc-tablet.css’ and ‘mc-mobile.css’ to your theme directory.

    The caching thing is a pain, however. Would be nice if that plug-in would consider context a bit better.

    We aren’t using a mobile plugin (yet). All I am trying to do now is get my-calendar to not break for desktop users.

    I don’t know what the my-calendar desktop version looks like on a mobile device, it might not be that useful, but I’m more concerned about the desktop users currently.

    Yes, supercache is a pain sometimes. There is a way for your plugin to register with supercache, or otherwise tell supercache that you are serving up mobile content, so then it caches properly. But I’ve never done that myself, so I don’t know how tricky it is.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Feature Request: disable mobile check’ is closed to new replies.