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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowHi 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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowthe 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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowThat 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)
BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month nowBy investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024