change header text colour for a specific page

kimkim79
Tourist
11 0 0

For every other page except home page: I want my header background to be white and header text to be black but I want my home page header to remain as it currently is (white header text, and transparent background which turns black when scrolling down)

 

Any help would be appreciated please! thank you 🙂 

 

My website is: https://layaandlu.myshopify.com/

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
7558 1460 1456

Go to your Online store > Themes > Edit code, add this code under <head> element

{% if template != 'index' %}
sticky-header.header-wrapper {
background-color: #000;
}
sticky-header.header-wrapper * {
color: #fff;
}
{% endif %}

 

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now

kimkim79
Tourist
11 0 0

It doesn't work. 

Dan-From-Ryviu
Shopify Partner
7558 1460 1456

Sorry, please update the code to this 

{% if template != 'index' %}
<style>
sticky-header.header-wrapper {
background-color: #000;
}
sticky-header.header-wrapper * {
color: #fff;
}
</style>
{% endif %}

- Helpful? Like or Accept solution! - Buy me a coffee
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Easy and fast to create Photo Gallery, Lookbook, Shop The Look
- Enjoy 1 month of Shopify for $1. Sign up now