WordPress Custom Metaviewport Tag

Quick code snippet showing basic use of the WordPress ustom Metaviewport Tag. This is provided as a quick copy/paste reference for WordPress developers. This hook is vesy useful for customizing: 

add_filter( 'wpex_meta_viewport', function() {
    return '<meta name="viewport" content="initial-scale=1, viewport-fit=cover">';
} );
See also  Set WooCommerce Product Short Description Limit

Leave a Reply

Your email address will not be published. Required fields are marked *