Last active
October 4, 2015 06:38
-
-
Save billerickson/2595028 to your computer and use it in GitHub Desktop.
Responsive Meta Tag
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
<?php | |
/** | |
* Viewport Meta Tag for Mobile Browsers | |
* | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/responsive-meta-tag | |
*/ | |
function be_viewport_meta_tag() { | |
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0"/>'; | |
} | |
add_action( 'wp_head', 'be_viewport_meta_tag' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment