Shopify themes, liquid, logos, and UX
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hello. I only want to show the separator line under the header when scrolling. Does anyone know how to do this?
Solved! Go to the solution
This is an accepted solution.
So please add code to theme.liquid file, after <head> and check again
<style>
html .header-wrapper--border-bottom { border-bottom: unset !important; }
html .scrolled-past-header .header-wrapper--border-bottom {
border-bottom: .1rem solid #dddd !important;
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
sticky-header.header-wrapper {
border-bottom: 2px solid white !important;
}
I hope this helps
Best,
Daisy
You can add this code to Custom CSS in Online Store > Themes > Customize > Theme settings to do that
html .header-wrapper--border-bottom { border-bottom: unset; }
html .scrolled-past-header .header-wrapper--border-bottom {
border-bottom: .1rem solid rgba(var(--color-foreground), .08);
}
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Where do i put this code ?
Go to your store admin > Sales Channels > Online Store > Themes > Customize > Theme settings > Custom CSS
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
it did not work.
This is an accepted solution.
So please add code to theme.liquid file, after <head> and check again
<style>
html .header-wrapper--border-bottom { border-bottom: unset !important; }
html .scrolled-past-header .header-wrapper--border-bottom {
border-bottom: .1rem solid #dddd !important;
}
</style>
- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
Hello @silenceclothing
Go to online store ----> themes ----> actions ----> edit code ---->base.css
add this code at the end of the file and save.
.header-wrapper.color-scheme-95fafa66-77d0-4a87-811c-eeb7bed11590.gradient.header-wrapper--border-bottom {
border-bottom: 1px solid white;
}
result
If this was helpful, hit the like button and accept the solution.
Thanks
i only want it to show when scrolling
thanks. It works now!