Jump to content

Why does my page jump when I go back up to the top

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution

Because padding of header change when you scroll up to top. You can add this to Design > Custom CSS (or Website > Website Tools > Custom CSS to make this padding fixed)

.header-announcement-bar-wrapper {
    padding: 1.8vw !important;
}

 

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/7/2023 at 9:34 PM, Liz1994 said:

@tuanphan this didn't work. I don't see .header-announcement-bar-wrapper when I go into my web inspector. 

Save & check in Live mode or incognito window (don't login). Recently there is a problem with code in edit mode

image.thumb.png.cca20cffe180717d5f1cd84665a41a4e.png

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/7/2023 at 9:41 AM, tuanphan said:

Because padding of header change when you scroll up to top. You can add this to Design > Custom CSS (or Website > Website Tools > Custom CSS to make this padding fixed)

.header-announcement-bar-wrapper {
    padding: 1.8vw !important;
}

 

I had the same issue and this code worked perfectly. Just wondering, is there another way to fix this instead of custom code? Something permanent on the Squarespace edit section?

Link to comment
On 8/9/2023 at 2:34 PM, Z_R said:

I had the same issue and this code worked perfectly. Just wondering, is there another way to fix this instead of custom code? Something permanent on the Squarespace edit section?

RPReplay_Final1691565429.mov

Not sure. You try adding a section above it with minimum height then check again

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/9/2023 at 8:33 PM, Liz1994 said:

@tuanphan sorry I think I said it didn't work for my other website that had this same issue. https://www.berschbackdesign.com. This site. I added a screenshot below of what I see on the web inspector. Apologies for putting that response for the wrong site! This worked for the website I posted above. Thank you! 

Screenshot 2023-08-09 at 8.35.46 AM.png

I see this site is fine to me. Your screenshot is cover page, it has a different structure. Also, 7.0 won't have this class name.

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
19 hours ago, Liz1994 said:

Hey @tuanphan! So for some reason it doesn’t do it on the mobile version when I’m on chrome but it does do it when I’m on my phone. The video of that is above. Let me know if there’s a way to fix that. 
thanks! 

You mean it works on real phone but doesn't work on phone preview on Chrome (Desktop)?

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
On 8/12/2023 at 7:24 PM, Liz1994 said:

@tuanphan It does the jump on my phone. It doesn’t do it on chrome. I have re-attached the video for you to see.

RPReplay_Final1691842996.mov

I have no idea to deal this with Cover Page.

You can consider using a standard page and recreate cover page layout & test to see if problem appears or not

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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.