Skip to content

Instantly share code, notes, and snippets.

@afsalrahim
Created March 25, 2016 17:03
Show Gist options
  • Save afsalrahim/b475988fec6bd6ef7b42 to your computer and use it in GitHub Desktop.
Save afsalrahim/b475988fec6bd6ef7b42 to your computer and use it in GitHub Desktop.
Add Viewport meta tag for mobile browsers - Wordpress theme code
<?php
/** Add Viewport meta tag for mobile browsers */
add_action( 'genesis_meta', 'add_viewport_meta_tag' );
function add_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