Viewing 1 replies (of 1 total)
  • Plugin Author uniquelylost

    (@uniquelylost)

    you can leave a “view full site” link on the mobile site with code like `
    <a href=”https://example.com/?view_full_site=true”>view full site</a>`

    That will let the mobile visitors bypass the redirect.

    But theres nothing currently built in to automatically redirect the desktop users from the mobile site to the desktop site.

    If you trying to redirect just desktop you could maybe use wp_is_mobile

    In mobile sites functions.php you could try something like-

    // add desktop redirect
    function emr_desktops_redirection() {
    	if ( !wp_is_mobile()) {
    		wp_redirect('https://yahoo.com');
    		exit;
    	}
    }
    add_action('wp_head','emr_desktops_redirection');
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect non-mobile traffic’ is closed to new replies.