Jump to content

Disabling any kind of zoom in / zoom out on Mobile and Desktop

Recommended Posts

7 minutes ago, MEEE said:

Site URL: https://crocodile-denim-dj9g.squarespace.com/new-page

Hi

I cannot find any info on how to disable zoom on my page

For example zara.com  does not allow to zoom in and zoom out. I would love to make my page with the same function

https://crocodile-denim-dj9g.squarespace.com/new-page

Pass: 2021lp

RPReplay_Final1637896829.mov

Try to add this meta tag into code injection header

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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
4 hours ago, MEEE said:

Hi

I cannot find any info on how to disable zoom on my page

For example zara.com  does not allow to zoom in and zoom out. I would love to make my page with the same function

https://crocodile-denim-dj9g.squarespace.com/new-page

Pass: 2021lp

RPReplay_Final1637896829.mov

Hi @MEEE try to add this in Header Injecton:

<script>
  document.querySelector("meta[name=viewport]").setAttribute("content", "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0");
</script>

 

SquareRefresh, premium plugins & templates that have an elevated feel.

Plugins: Have your site stand out. 
Templates: Our templates are designed with versatility in mind.
Get Freebies: Sometimes things in life are free. Browser our hand selected free plugins.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.