WordPress.org

Ready to get started?Download WordPress

Forums

Lazyest Stylesheet
[resolved] Mobile choice on non-mobile device (3 posts)

  1. JS Morisset
    Member
    Posted 1 year ago #

    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/

  2. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    I'll add a filter.

  3. Marcel Brinkkemper
    Member
    Plugin Author

    Posted 1 year ago #

    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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.