How to make sticky header black?

Solved

How to make sticky header black?

Somehow999
Excursionist
26 0 9

I need to make sticky transparent header black if scrolled down

My store - corbie.store

Accepted Solution (1)
topnewyork
Astronaut
1299 160 217

This is an accepted solution.

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

<style>
header__logo-image--transparent {
    position: absolute !important;
    top: -70px !important;
}
image-banner.content-over-media.content-over-media--lg.full-bleed.text-custom {
    position: relative !important;
    margin-top: 7rem !important !important;
}
.header__wrapper {
    background: black !important;
}
</style>

 If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month

View solution in original post

Replies 7 (7)

LizHoang
Shopify Partner
1251 159 193

Hi @Somehow999 I see i worked

LizHoang_0-1740705280316.png

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Check our Joy Rewards & Loyalty Program
Somehow999
Excursionist
26 0 9

Yes but it's gray on any other page

Dan-From-Ryviu
Shopify Partner
11430 2244 2415

Hi @Somehow999 

I see it already transparent and black background when scrolling down. 

- Resolved your issue? - Hit Like & Accept solution - Support me: Buy Me Coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Reton: Loyalty & Rewards - Earn points through tasks, redeem for discounts, and enjoy exclusive VIP rewards!
- 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.
- En...
Sign up now.

topnewyork
Astronaut
1299 160 217

Hi @Somehow999 Do you want the header like this across the entire website?

topnewyork_0-1740730748910.png

 

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
Somehow999
Excursionist
26 0 9

Yes man

topnewyork
Astronaut
1299 160 217

This is an accepted solution.

1. Go to Online Store -> Theme -> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head>

<style>
header__logo-image--transparent {
    position: absolute !important;
    top: -70px !important;
}
image-banner.content-over-media.content-over-media--lg.full-bleed.text-custom {
    position: relative !important;
    margin-top: 7rem !important !important;
}
.header__wrapper {
    background: black !important;
}
</style>

 If my reply is helpful, kindly click like and mark it as an accepted solution.
Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month
Somehow999
Excursionist
26 0 9

Thank you so much