Support » Plugin: Lazyest Stylesheet » [Plugin: Lazyest Stylesheet] Mobile choice on non-mobile device

  • Resolved JS Morisset

    (@jsmoriss)


    Hi,

    Any chance you could add the following extra mobile detection?

    >               case ( $_GET['mobile_override'] == 'mobile' || $_COOKIE['mobile_override'] == 'mobile');
    >                       $mobile_browser = true;
    >               break;

    That would support my theme’s (and perhaps others) choice of viewing the mobile page on a non-mobile platform. 🙂

    Thanks,

    js.

    http://wordpress.org/extend/plugins/lazyest-stylesheet/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Marcel Brinkkemper

    (@macbrink)

    I’ll add a filter.

    Plugin Author Marcel Brinkkemper

    (@macbrink)

    download version 0.8.0 and add this to your theme functions.php:

    function my_mobile_browser( $mobile_browser ) {
      if ( $_GET['mobile_override'] == 'mobile' ||
        $_COOKIE['mobile_override'] == 'mobile')
        $mobile_browser = true;
      return $mobile_browser;
    }
    add_filter( 'lazyest-stylesheet-mobile-browser', 'my_mobile_browser');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Lazyest Stylesheet] Mobile choice on non-mobile device’ is closed to new replies.