Skip to content

Instantly share code, notes, and snippets.

@Garconis
Garconis / divi-viewport-pinch-to-zoom.php
Created September 25, 2017 15:05
Divi | Add pinch and zoom (user scalable) to mobile viewport meta
<?php
// Removes et_add_viewport_meta from the wp_head phase
function remove_divi_actions() {
remove_action( 'wp_head', 'et_add_viewport_meta' );
}
// Call 'remove_divi_actions' during WP initialization
add_action('init','remove_divi_actions');
// add ability to pinch and zoom