add_action( 'wp_head', 'add_viewport_meta' );
function add_viewport_meta() {
// Force desktop view only on the page with a slug of 'about-us'
if ( is_page( 'about-us' ) ) {
$viewport_meta = 'width=1024'; // desktop
} else {
$viewport_meta = 'width=device-width, initial-scale=1.0'; // responsive
}
?>
0 Comments