Home › Forums › Support › Mobile Zoom This topic has 7 replies, 4 voices, and was last updated 6 years, 8 months ago by Tom. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts October 28, 2016 at 1:29 am #239580 Mark Hi Tom, I’m looking to stop mobile zooming on my website: http://www.fastbus.ie The normal meta viewport tag doesn’t seem to be working and I can’t for the life of me find how to turn it off. <meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0″/> Any help appreciated! Cheers, Mark October 28, 2016 at 9:15 am #239648 TomLead Developer Lead Developer You can remove the current meta tag like this: add_action( 'after_setup_theme','tu_remove_viewport_meta' ); function tu_remove_viewport_meta() { remove_action('wp_head','generate_add_viewport'); } Then you can add your own in a function or GP Hooks ๐ November 1, 2016 at 3:16 am #240704 Mark Cheers thanks for that Tom. November 1, 2016 at 9:57 am #240816 TomLead Developer Lead Developer No problem ๐ December 5, 2016 at 4:44 am #251545 Ahamed Hi, To just turn off the mobile zoom so that it is not scalable, What css should I add? December 5, 2016 at 9:58 am #251632 TomLead Developer Lead Developer You could do this: add_filter( 'generate_meta_viewport', 'tu_disable_mobile_zoom' ); function tu_disable_mobile_zoom() { return '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">'; } August 6, 2017 at 7:55 pm #360793 German Hello, As I can disable the pinch zoom on the mobile, I do not understand how to do it in the hooks. thank you very much for your help August 6, 2017 at 11:48 pm #360848 TomLead Developer Lead Developer Copy the code above: https://generatepress.com/forums/topic/mobile-zoom/#post-251632 And add it using these instructions: https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In