Created
October 10, 2016 12:31
-
-
Save braddalton/b40efba09019215d8e95a02a6294c537 to your computer and use it in GitHub Desktop.
Load Different Page For Mobile Users http://wp.me/p1lTu0-gAN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
if ( ($( window).width() < 680 ) ) { | |
document.location = "http://example.com/mobile-front-page"; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment