WordPress.org

Ready to get started?Download WordPress

Forums

My Calendar
Feature Request: disable mobile check (3 posts)

  1. jondaley
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/my-calendar/

  2. Joe Dolson
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. jondaley
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic