Shopify themes, liquid, logos, and UX
Hi, hope everyone is doing well, I am having an issue with my header not sticking as I scroll.
I have the option checked in Customize and tried
.shopify-section-header-sticky {
position: -webkit-sticky !important;
position: sticky !important;
top: 0 !important;
}
but nothing seems to work
Solved! Go to the solution
This is an accepted solution.
I fixed it is all good, I created a dummy page and copy and pasted my code to observe the behavior of my header. Turns out it was the header.liquid that had an issue. I searched for sticky and copy the good copy's portion of the sticky header code in. And it worked, thanks @BSS-TekLabs and @Dabsi and sorry I dont like giving my socials and its my first time posting so Im not too sure how things work but hope you both have a good day
Hello @Catanddesks
Our team is ready to help you.
Please share your website address and access password (if necessary) so that we can check and assist you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi thanks for the quick reply, here is my site: catanddesk.co
Can you share password @Catanddesks
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
the password is bewlai
- Here is the solution for you @Catanddesks
- Please follow these steps:
- Then find the base.css or theme.css file.
- Then add the following code at the end of the file and press 'Save' to save it.
.header-wrapper:not(.not-homepage).gradient.hover {
position: fixed !important;
}
- Here is the result you will achieve:
- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hi BSS, thanks for the quick reply again, I just got home and tried the solution and its causing some problems when I hover over it as seen in the gif above, do you happen to know how this new issue can be addressed?
- The closest thing I got was setting it as relative but even then, it pushes everything down by the same vertical width of the header.
Also, I was wondering if you'd also happen to know how to have it apply in the non-homepages too.
This problem is caused by your theme's css. You can go to the base.css file, find this line of code and delete it.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
That was the line that I added from previous reply but experimented with relative as 'fixed' was producing the problem seen in the gif
Hi just wondering if you have had a chance to look at this? Ive been tweaking the code but nothing seems to work :'(
This is an accepted solution.
I fixed it is all good, I created a dummy page and copy and pasted my code to observe the behavior of my header. Turns out it was the header.liquid that had an issue. I searched for sticky and copy the good copy's portion of the sticky header code in. And it worked, thanks @BSS-TekLabs and @Dabsi and sorry I dont like giving my socials and its my first time posting so Im not too sure how things work but hope you both have a good day
Glad to help you. Have a good day.
If our suggestions are useful, please let us know by giving it a like or marking it as a solution.
Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)
Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025