• Resolved jokubas2000k

    (@jokubas2000k)


    Hi,

    I would like to prevent the automatic zoom in when you’re filling in form fields/checkout fields on mobile. It’s very annoying.

    I have found this snippet:

    add_filter('ocean_meta_viewport', 'owp_child_viewport');
    function owp_child_viewport( $viewport ){
    	$viewport = '<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">';
    	return $viewport;
    }

    It seems like this snippet does the job but I wanted to make sure it’s up to date because it was posted 3 years ago. Is this snippet correct?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Prevent input zoom on mobile’ is closed to new replies.