Skip to content

Instantly share code, notes, and snippets.

@AMNDesign
Created August 27, 2013 21:23
Show Gist options
  • Select an option

  • Save AMNDesign/6359346 to your computer and use it in GitHub Desktop.

Select an option

Save AMNDesign/6359346 to your computer and use it in GitHub Desktop.
Add viewport meta tag for mobile browsers using the Genesis Framework.
<?php
//* Add Viewport meta tag for mobile browsers
add_action( 'genesis_meta', 'amn_viewport_meta_tag' );
function amn_viewport_meta_tag() {
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment