We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to fix scroll bug in header on mobile

Solved

How to fix scroll bug in header on mobile

CreatorTim
Navigator
471 1 71

Hey guys, when I open the header on mobile and start "scrolling," it scrolls all the way across the store.

 

How can I fix this? I want the header to be fixed in place and not scroll, without any bugs.

 

Here’s my store URL: https://1049xn-ya.myshopify.com/

 

Also, when I check it using F12 on a computer, it doesn’t bug, but when I view it on an actual mobile device, it doesn’t work.

 

So I only need this for mobile

 

Thank you,
Tim

Accepted Solution (1)

mageplaza-cs
Shopify Partner
567 46 87

This is an accepted solution.

Hi @CreatorTim,

I am from Mageplaza - Shopify solution expert.

fter reviewing your store, I found that the issue is likely caused by the CSS in base.css:

 

body.hide-scroll {
    overflow-y: hidden !important;
}

You can modify it to:

 

body.hide-scroll {
    overflow: hidden !important;
}

 

Please let me know if it works as expected!

Best regards

Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants


If our suggestion works for you, please give it a Like or mark it as a Solution!


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com

View solution in original post

Replies 2 (2)

mageplaza-cs
Shopify Partner
567 46 87

This is an accepted solution.

Hi @CreatorTim,

I am from Mageplaza - Shopify solution expert.

fter reviewing your store, I found that the issue is likely caused by the CSS in base.css:

 

body.hide-scroll {
    overflow-y: hidden !important;
}

You can modify it to:

 

body.hide-scroll {
    overflow: hidden !important;
}

 

Please let me know if it works as expected!

Best regards

Mageplaza | Top-Rated Shopify Agency | Trusted by 230,000+ worldwide merchants


If our suggestion works for you, please give it a Like or mark it as a Solution!


Should you have any questions or concerns, feel free to contact us via consultant@mageplaza.com

CreatorTim
Navigator
471 1 71

Hey, I think it works! Thank you