Shopify themes, liquid, logos, and UX
I have an issue on mobile, the width of my website is not the same as my mobile screen. I can always scroll a bit to the right and it doesn't look good.
I added a code that i saw on a discussion and it solved the problem, but it caused my header to stay at the top of my website, but not when i scrolled down.
Is there a code i could use the solve these issues ?
Hi @okocha21 , kindly provide your store URL please and if it is password protected, please share the password as well. Thanks
Hi, it's wonnky.com
Hello @okocha21 , Try this code add this in your css file - base.css, or style.css
body, html {
overflow-x: hidden; /* Prevents horizontal scroll */
width: 100%; /* Sets width to device width */
}
Thanks, it does resolve the width issue, but it creates another issue with my header which doesn't sticks to the top of the screen as i scroll down, even though it is activated to always stay fixed at the top.
I'll let the code like this for now, so you can see by yourself.
Hi @okocha21
try this
body, html {
overflow-x: hidden;
width: 100%;
position: relative;
}
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024