hello, i want to remove the border line for my transparent header:
my store is: https://vg4z20vq80vtlw7y-90984481091.shopifypreview.com/ , theme is horizon
A user seeks to remove the border line from their transparent header on a Horizon theme Shopify store, specifically wanting to preserve the border on non-transparent headers.
Initial Solutions Offered:
.header__row or .header__row--top with border-bottom: none or similar propertiesKey Issue:
The user clarified that the initial solutions removed the border entirely across all pages, but they only wanted it removed when the header is transparent.
Refined Solution:
A targeted approach was provided using a “Custom liquid” section in the homepage template with CSS that specifically targets the transparent state:
[data-sticky-state="inactive"] .header__row {
border-bottom: none;
}
This solution applies only to the homepage when the header is transparent at the top of the page, preserving the border in other contexts. The discussion remains open pending confirmation from the original poster.
hello, i want to remove the border line for my transparent header:
my store is: https://vg4z20vq80vtlw7y-90984481091.shopifypreview.com/ , theme is horizon
Hey @ads18922
Follow these Steps:
<style>
.header__row {
border-bottom: unset !important;
}
</style>
RESULT:
If you require any other help, feel free to reach out to me. If I managed to help you then a Like would be truly appreciated.
Best,
Moeed
Hi @ads18922 ,
Add this in base.css
.header__row--top {
border-bottom: none !important; /* removes any visible border */
--border-bottom-width: 0px !important; /* overrides the inline variable */
--border-bottom-width-mobile: 0px !important; /* overrides mobile variable */
}
Save and refresh preview.
Results on laptop view and mobile view.
Thanks
Manoj
that removes the whole separator line altogether - i just want to remove it for the transparent header
that removes the whole separator line altogether - i just want to remove it for the transparent header.
Please add below css at the bottom of assets/styles.css file
.header__row.header__row–top {
border-bottom: none;
}
Thank you.
Good day @ads18922 , If you would like to remove the bottom border from the header, please follow these steps:
Go to Online Store in your Shopify admin.
Click Edit Code, then open base.css (or your custom CSS file).
Paste the CSS code provided below into the file.
.header .header__row {
border-bottom: 0;
}
I’ve also attached screenshots for your reference, so you can easily follow along.
If you have any questions or need further assistance, please don’t hesitate to ask.
If this solution helps you, please don’t forget to like and accept it.
Regards,
(S.P)