Created
August 20, 2013 17:28
-
-
Save davekuhar/6284534 to your computer and use it in GitHub Desktop.
Set viewport content width to accommodate layouts wider than 980px on non-responsive sites. In this example the .wrap was 1060px so the viewport width was set to 1080 which allowed for a 10px gutter.
https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariWebContent/UsingtheViewport/UsingtheViewport.html#//appl…
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
/** Add Viewport meta tag for mobile browsers */ | |
add_action( 'genesis_meta', 'storewithstyle_add_viewport_meta_tag' ); | |
function storewithstyle_add_viewport_meta_tag() { | |
// echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>'; | |
echo '<meta name="viewport" content="width=1080" />'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment