Remove border for transparent header - horizon theme

Topic summary

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:

  • Multiple contributors provided CSS code targeting .header__row or .header__row--top with border-bottom: none or similar properties
  • These solutions were designed to be added to various files (theme.liquid, base.css, or styles.css)
  • Screenshots demonstrated successful border removal on both desktop and mobile views

Key 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.

Summarized with AI on October 25. AI used: claude-sonnet-4-5-20250929.

hello, i want to remove the border line for my transparent header:

my store is: https://vg4z20vq80vtlw7y-90984481091.shopifypreview.com/ , theme is horizon

1 Like

Hey @ads18922

Follow these Steps:

  1. Go to Online Store
  2. Edit Code
  3. Find theme.liquid file
  4. Add the following code in the bottom of the file above </ body> tag
<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:

  1. Go to Online Store in your Shopify admin.

  2. Click Edit Code, then open base.css (or your custom CSS file).

  3. 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)

In customizer, add a “Custom liquid” section to the homepage template.
Paste this code:

<style>
  [data-sticky-state="inactive"] .header__row {
    border-bottom: none;
  }
</style>

This way it will only apply on homepage and only when header is transparent at the top of the page.