Jump to content

Site shifts left and right on desktop and mobile

Recommended Posts

On 10/17/2022 at 6:04 PM, colbymartin said:

I came here because my mobile site is doing the same thing.

This doesn't appear to be the same issue we usually see. In those cases there is white space outside the viewport but you can scroll to the right.

In your case you have the whitespace but there was no scrolling to the right. So it appears that the main content may have been squished.

I saw it the first time I loaded the site and viewed the mobile view. I then went into diagnostic mode and as I was scrolling down the space, the issue suddenly went away.

I then tried a refresh of the page to get back to base and I'm no longer able to reproduce the issue? Did you solve?

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
1 hour ago, creedon said:

 

I then tried a refresh of the page to get back to base and I'm no longer able to reproduce the issue? Did you solve?

Actually, yes, I think I did figure it out! I had a code block where I embedded a signup form for my Substack, and I think it was too wide... so when I changed the width (down to like 380?) it seems to have "solved" my problem. Thanks for replying!!

Link to comment
  • 3 months later...

Hi - I tried this code:

html, body {
    overflow-x: hidden;
}

but although it fixed the shifting it causes scrolling issues (as in the site doesn't want to scroll).

Additionally I have another issue where the code I used to force the masonry grid to single column worked but the images aren't centered on the phone, they flush right. Any help with that would be appreciated...

orb-horse-nrf2.squarespace.com

Link to comment
22 minutes ago, Leda_Atomika said:

I tried this code:

Please set up a site-wide password, if your site is not public and you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site.

Please read the site-wide password documentation to understand how it works.

We can then take a look at your issue.

You may find How to post a forum question post useful.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 1 month later...

You’re right - I realized I could set a site wide password afterwards - sorry about that. 

And the shifting was caused by an overflow issue being caused by the bottom navigation in the template. Once I made the bottom navigation smaller with the arrows popped back inside the frame and the site stopped shifting side to side when viewed on my phone.

Link to comment
  • 2 months later...
3 hours ago, Sam-B-SF said:

I've included a link

The link you pointed to does not work. Also note the text of the link and the URL are different.

I went to https://sh1ftfitness.net/digital-content and did not see any issue.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
15 hours ago, Sam-B-SF said:

You can basically pull in the left and right sides as you scroll...

This is normal browser behaviour.

It is possible to override it with some CSS. I'd recommend not to do it as people have gotten used to the new way browsers have this bounce feature. If you change their experience it takes them out of the moment and give them a odd feeling about your site.

Add the following to Design > Custom CSS.

body {

  overscroll-behavior-x : none;
  
  }

Let us know how it goes.

Edited by creedon

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

@creedon thank you for the explanation and code. I've never actually seen this on any other sites and it doesn't do it on majority of my site pages, so I would like to stop it so all the pages are consistent. I tried adding the lines of code you mentioned above but it doesn't seem to have solved the issue. 

Link to comment
  • 1 month later...

hello, I am having the same problem. I made my site live a few days ago and when I went to view it on my phone it moves from left to right. Also there is a white bar to the right side of the site when viewed on mobile. I have had a look on a few different phones and is the same. Would anyone be able to help me work out how to fix this? my site is:

www.louiseblissful.com

Thank you.

Link to comment
On 8/2/2023 at 6:27 PM, louiseblissful said:

hello, I am having the same problem. I made my site live a few days ago and when I went to view it on my phone it moves from left to right. Also there is a white bar to the right side of the site when viewed on mobile. I have had a look on a few different phones and is the same. Would anyone be able to help me work out how to fix this? my site is:

www.louiseblissful.com

Thank you.

Hi,

Logo is too big so it causes scroll + white bar. You can use a smaller version for mobile logo or use this to Custom CSS box to reduce logo size

/* Mobile logo size */
div.header-display-mobile img {
    max-height: 50px !important;
}

(Just a little experience if you have problems next time.

How I found out the cause: I hided each section with the code one by one, then found that if I delete the header, it disappears. I redisplayed them all, and removed each element in the header and found that the logo was causing the problem)

Edited by tuanphan

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/8/2023 at 4:39 AM, bootjackdesign said:

Hi I am having this issue as well. 

on page load it is fine, but if you scroll left or right or "pinch" on mobile, a white bar appears, which varies in width from page to page.

I adjusted the mobile logo width to below 50px and it didn't work 

IMG_5441.PNG

IMG_5442.PNG

Can you share site url? We can check easier

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 12:07 PM, SamuelDesigns said:

Having this same issue please help!!! My site keeps shifting around in mobile can't see the cart

www.samuelreels.com

@media only screen and (max-width: 640px) {
    #block-yui_3_17_2_1_1637592716578_2942.sqs-block-image {
        width:150%;
        margin: auto

Add this to Design > Custom CSS

/* Fix mobile shifting */
@media screen and (max-width:767px) {
.header-title-nav-wrapper {
    max-width: 60% !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
22 minutes ago, SamuelDesigns said:

Also does anyone  have anyone solutions for  removing  AW-1119972099 that sits above the website page?

This usually indicates errant text in your code injection which causes rendering issues.

I suspect this bit of text is in Settings > Developer Tools > Code Injection > FOOTER. Remove it. Also while you're there, if there is other code, check it's syntax to make sure there are not other errors.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
  • 5 months later...

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.