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
  • 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
  • 9 months later...

Hi,

I am having a similar fonts size issue when scrolling on a mobile device, similar to the posts here:

  • https://forum.squarespace.com/topic/209106-how-do-i-stop-the-text-on-my-mobile-site-changing-size-when-scrolling/
  • https://forum.squarespace.com/topic/187578-image-font-size-change-on-mobile-scroll/
  • https://forum.squarespace.com/topic/191248-header-title-font-jumps-size-upon-scrolling-on-mobile-devices/

I have been trying to implement those suggestions, but I don't seem to be able to get it right. Do you have any suggestions?

Thank you :)

Link to comment
On 8/31/2022 at 2:16 AM, tuanphan said:

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

I tried pasting that code in the CSS but the headers are still changing when scrolling 😞

Do you have any other suggestion?

 

Thank you!

Link to comment
On 6/7/2023 at 10:03 PM, Prozac said:

I tried pasting that code in the CSS but the headers are still changing when scrolling 😞

Do you have any other suggestion?

 

Thank you!

You mean Header Height or Heading (h1, h2, h3..) or Header text (logo, navigation..)?

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
  • 1 month later...
  • 1 month later...
  • 1 month later...

I've noticed this too. We just completed a new site  with a 7.1 version and the headlines and body copy always jump (glitch) in sizes at the start of scrolling on mobile.

This reformats the text and makes it break at different points, so the glitch is sometimes even more drastic.

We need to solve this. Any ideas?

(BTW: I think, Squarespace should look into this)

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.