Skip to content

Instantly share code, notes, and snippets.

@ffot
ffot / divi-viewport-pinch-to-zoom.php
Created August 27, 2020 15:14 — forked from Garconis/divi-viewport-pinch-to-zoom.php
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