WordPress: Add custom viewport meta tag (Genesis Framework)

<?php add_action( 'genesis_meta', 'sp_viewport_meta_tag' ); function sp_viewport_meta_tag() { echo '<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"/>'; } ?>
Simply paste this code snippet in the functions.php file of your (child) theme (without the php tags).

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.