change header text colour for a specific page

kimkim79
Tourist
10 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
7514 1450 1447

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, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now

kimkim79
Tourist
10 0 0

It doesn't work. 

Dan-From-Ryviu
Shopify Partner
7514 1450 1447

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, - Coffee Tips or Paypal Tips
- Ryviu - Product Reviews app, collect product reviews, import reviews from AliExpress, Amazon, Etsy, Shopee and Walmart and CSV.
- Lookfy app: Create Image Lookbook, Photo Gallery with product hotspots
- Enjoy 1 month of Shopify for $1. Sign up now