Snippets: Custom Metaviewport Tag

function my_custom_meta_viewport_tag( $viewport ) {
    $viewport   = '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />';
    return $viewport;
}
add_filter( 'wpex_meta_viewport', 'my_custom_meta_viewport_tag' );

Snippet Type: PHP

Posted Under: Core

All PHP snippets should be added via a child theme's functions.php file.