Jump to content

How do I stop the text on my mobile site changing size when scrolling?

Recommended Posts

Site URL: https://rewildprojects.co/

Hi guys,

Quick caveat: I'm a complete newbie to Squarespace and have almost zero understanding of code 🙂

I have created a website for me brand consultancy (rewildprojects.co) and I have an issue whereby when I scroll up or down on my mobile site, the text and fonts change size. Video for reference can be found here.

I'm using Safari 14:
 
Does anyone have any ideas or suggestions? My fried helped me add some code to the site (to help with my custom font and size of an image on mobile). The custom code is here for reference:

/*******FONTS**********/
h1, h2 {
      font-family: new-spirit-condensed, serif;
     font-weight: 400;
}

/* CSS FOR TABLET AND MOBILE */
@mobile: ~"only screen and (max-width: 640px)";
@tablet: ~"only screen and (min-width: 641px) and (max-width: 949px)";

/* CSS FOR TABLET */
@media @tablet {
.sqs-block-image {
  width: 20%;
  margin: 0 auto;
}
}

/* CSS FOR MOBILE */
@media @mobile {
  .sqs-block-image {
  width: 20%;
  margin: 0 auto;
}
}

---------

Any help would be greatly appreciated!!

Thank you
Dave
 

Link to comment
  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

  • 8 months later...
13 hours ago, CKay280 said:

I'm having the same issue. Is there a custom css fix for this?

Thank you,

Try adding this to Design > Custom CSS

@media screen and (max-width:767px) {
	h1 {
		font-size: 30px !important;
}
h2 {
		font-size: 26px !important;
}
h3 {
		font-size: 24px !important;
}
h4 {
		font-size: 22px !important;
}
h5 {
		font-size: 20px !important;
}
h6 {
		font-size: 18px !important;
}
}

You can adjust these heading size

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.