Enable Pinch Zooming in Mobile

Apr 18th, 2021 (edited)
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /******************** [ ENABLE MOBILE PINCH ZOOMING ] *******************************/
  2. add_action('after_setup_theme', 'db_remove_et_viewport_meta');
  3. add_action('wp_head', 'db_enable_pinch_zoom');
  5. function db_remove_et_viewport_meta() {
  6.     remove_action('wp_head', 'et_add_viewport_meta');
  7. }
  8. function db_enable_pinch_zoom() {
  9.     echo '<meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0, minimum-scale=0.1, maximum-scale=10.0">';
  10. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add to your ad blocker whitelist or disable your adblocking software.