Created
September 25, 2017 15:05
-
-
Save Garconis/34b6be24ee644c024663ef1d2e11e2bb to your computer and use it in GitHub Desktop.
Revisions
-
Garconis created this gist
Sep 25, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ <?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 function et_new_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', 'et_new_viewport_meta', 15 );