Mobile Website Horizontal Play/Scroll

Solved

Mobile Website Horizontal Play/Scroll

LeandroS
Explorer
64 1 12

Hello

 

I am looking for help for my shopify Website (mobile only).

 

I Rearranged my burger menu and cart icon to be more on the edge of the screen.

since then i have the problem with my mobile side having horizontal play/scroll. it seems that the website is slightly zoomed in (after zooming out it doesn't happen anymore) I think its because of overflow or something..

 

I know its because of the code, because after i removed it the scroll was away. 

 

Can anyone help me?

I would really appreciate it!

 

Website: www.gogghi.ch

Password: GOGGHI10NEWWEBSITE2025

 

Here the video Link for explanation and understanding the problem:

https://vimeo.com/1049279459 

 

and this code here was used to rearrange the header menu: (in base.css)

 

@media(max-width:989px){
header.header.header--middle-center.header--mobile-center.page-width.header--has-menu.header--has-social.header--has-account {
    padding-left: 11px !important;
    padding-right: 11px !important;
}
.header__icons {
    padding-right: 0 !important;
}
}

 

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10211 2427 3082

This is an accepted solution.

Hi @LeandroS 

Thank you fro reaching out. 

Try this code.

Add in the theme.liquid. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag

 

 

<style>
@media only screen and (max-width: 749px){
.header {
    padding-left: 1rem;
    padding-right: 1rem;
}
}
</style>

 

 

And Save. 

The header have a default padding I just lesser the size. 

Made4uoRibe_0-1737641439065.png

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 3 (3)

CodingFifty
Shopify Partner
1007 151 176

Hi @LeandroS,

 

Go to Online Store, then Theme, and select Edit Code.
Search for base.css/theme.css/style.css file Add the provided code at the end of the file.

 

html, body {
    overflow-x: hidden !important;
}

 

Coding Fifty || Shopify Partner
For any custom section queries, please visit: Fiverr Profile
Found my response useful? Like it and mark as Accepted Solution!
For additional discussions, reach out via: Email ID: codingfifty@gmail.com

Made4uo-Ribe
Shopify Partner
10211 2427 3082

This is an accepted solution.

Hi @LeandroS 

Thank you fro reaching out. 

Try this code.

Add in the theme.liquid. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes"
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "theme. Liquid" file. Find the </body> tag and paste the code below before the tag

 

 

<style>
@media only screen and (max-width: 749px){
.header {
    padding-left: 1rem;
    padding-right: 1rem;
}
}
</style>

 

 

And Save. 

The header have a default padding I just lesser the size. 

Made4uoRibe_0-1737641439065.png

 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

Made4uo-Ribe
Shopify Partner
10211 2427 3082

Welcome! Would you mind hitting 'like' as well? Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.