WordPress.org

Ready to get started?Download WordPress

Forums

WPtap Mobile Detector
View full website option (3 posts)

  1. thadfiebich
    Member
    Posted 2 years ago #

    I'd like to give mobile users the option to view the desktop site and all it's content. Is there a way to add a link on the mobile site that when clicked will overrule the redirect and allow the mobile user to view the desktop site?

    http://wordpress.org/extend/plugins/wptap-mobile-detector/

  2. thadfiebich
    Member
    Posted 2 years ago #

    This might not be too bad. Using shortcode to create a link with a passing variable in the url that would bypass the redirect. hmmm.

  3. aoikle
    Member
    Posted 1 year ago #

    I tried adding this to mobiledetector.php. Seems to work for me instead of adding a JS lib. You can name the request/cookie name/value anything you want.

    if ( isset($_COOKIE['disable-mobile-redirect']) || isset($_REQUEST['disable-mobile-redirect']) ) {
    setcookie('disable-mobile-redirect', 'true');
    } else {

    -- original code --

    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.