How do I fix general mobile zoom on Shopify?

How do I fix general mobile zoom on Shopify?

RyanPavlik
Shopify Partner
13 0 0

 

When I go to my Shopify store on my iphone, I can zoom out of the width of the template. How do I disable the pinch zoom out on the mobile shop or any zoom out? I don't want people to go into my store on their iPhones and be able to zoom out of the store and there be white space to the right of the store template.

 

The top image of this page is exactly what I'm seeing when I zoom out (except you can zoom out much farther then what is seen in the image): https://community.shopify.com/c/shopify-design/home-page-zoom-in-in-mobile-looks-bad-how-i-can-fix-i...

 

Here is my shop link: https://viralityinc.myshopify.com/ 

 

Please help if you see this.

Reply 1 (1)

EcomGraduates
Shopify Partner
735 63 105

To prevent zooming out on your Shopify store, you can add a meta tag to your theme’s HTML. This tag will help control zooming on mobile devices.

 

Here's a quick fix: In your Shopify admin, go to Online Store > Themes > Actions > Edit code. Find the <head> section of your theme's theme.liquid file, and add this line:

<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

 

This should help keep your store from zooming out on mobile devices.


If this fixed your issue, likes and accepting as a solution are highly appreciated.

Build an online presence with our custom built Shopify Theme EcomifyTheme