Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Last active July 19, 2018 11:29
Show Gist options
  • Save lots0logs/7794160dc00c6c4ad6e6 to your computer and use it in GitHub Desktop.
Save lots0logs/7794160dc00c6c4ad6e6 to your computer and use it in GitHub Desktop.
WordPress :: Divi Theme :: Enable Pinch-To-Zoom
function my_et_add_viewport_meta(){
echo '<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=1" />';
}
add_action( 'wp_head', 'my_et_add_viewport_meta' , 11 );
function my_et_add_viewport_meta_disable() {
remove_action( 'wp_head', 'et_add_viewport_meta' );
}
add_action( 'after_setup_theme', 'my_et_add_viewport_meta_disabled', 50 );
@Garconis
Copy link

This didn't actually remove the "old" one.

@Garconis
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment