Shopify themes, liquid, logos, and UX
Looking to make the wood header image static. Currently the image moves when you scroll up and down. This is more noticeable on mobile.
Thanks.
Hi @crosbyaudio!
It looks like the header section is set to sticky, which is causing it to move as you scroll.
.section-header {
position: sticky;
margin-bottom: 0px;
}
Changing the position to static should solve the issue and keep it in place.
.section-header {
position: static;
margin-bottom: 0px;
}
Let me know if you need any further details or run into any issues!
Hope this helps!
Thanks, but where does the code go?
Ah, sorry about that!
In the Admin area, go to the Header section of your site, and scroll to the bottom to add the new code in the Custom CSS.
Alternatively, there’s another method that doesn’t require Custom CSS! Currently, your header is set to 'Sticky on scroll up.' You can find this option on the same Header page in Admin.
If you change this setting to 'None,' it will revert to the default positioning, which is static.
I’ve tested both methods, and either should solve your problem. Hope this helps!
Thanks, but I think you misunderstood my issue. I want to stop the wood background from moving when you scroll up and down. Please see the screen recording below.
Hi @crosbyaudio, if you set 'sticky header' (in Admin, same area as before) to 'always', the header will not move, despite scrolling up and down.
Let me know if this solves your issue!
Sorry, still not the issue I'm having. It's clear what the problem is in the video, but thanks for trying.
That's my bad, I completely misunderstood.
I tested this CSS on .head-wrapper, changing background-attachment from 'fixed' to 'scroll'.
.head-wrapper {
background-attachment: scroll;
}
This stopped the image from moving.
This can be added to Admin => Header => Custom CSS.
That seems to work for desktop, but not mobile.
That's unusual - it's working on mobile when I test it. Could you give me more details?
The wood image still moves when you scroll up and down. The image needs to be static.
Hey 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, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024