Skip to content

Instantly share code, notes, and snippets.

@davekuhar
Created August 20, 2013 17:28
Show Gist options
  • Save davekuhar/6284534 to your computer and use it in GitHub Desktop.
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…
/** 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