Hello
Could someone help me with a problem I’ve been struggling with?
I have an extra large image banner on my home page with an transparent header (see pictures). I want the text in white only on my home page and not on the other pages but I can’t find a solution. If I change the color schemes of my header it changes on all my pages?
See images
1 Like
Hi @Baybeezhelp ,
Please share your store URL and if your store is password protected then please provide password too.
So that we can help you.
Thank you.
@Baybeezhelp
yes, please give theme.liquid code so i will update
Hi @Baybeezhelp ,
You can follow the instruction below:
- Go to Online Store->Theme->Edit code
- Find file “theme.liquid”->Find “” and paste below code at the before :
{%- if template contains 'index' -%}
{%- endif -%}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Hi
The nav bar is indeed white on the homepage only but my dropdown menu is whit now too? Text should be black in dropdown.
Thanks for the help!
Hi @Baybeezhelp ,
You try replace by below code:
{%- if template contains 'index' -%}
{%- endif -%}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
Hi @AvadaCommerce
The dropdown menu is still white there should be text with categories? I have pasted the code but nothing has changed?
See screenshot.
Hi @Baybeezhelp ,
I forgot to remind you. E revert to the previous code that I sent. Then replace with the following code
remove this code:
{%- if template contains 'index' -%}
{%- endif -%}
And add this code:
{%- if template contains 'index' -%}
{%- endif -%}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
2 Likes
@AvadaCommerce thanks a lot it works!
Maybe one small detail if you could help me fix it 
The little arrow for my dropdown for categories is black could you make it white?

Hi @Baybeezhelp ,
You try replace below code:
{%- if template contains 'index' -%}
{%- endif -%}
If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any further questions.
2 Likes
Hi @AvadaCommerce it’s me again…
I added another dropdown in my dropdown menu and now the word is white again? It should be black. I would appreciate the help friend. Is there supposed to be an arrow next to the sub dropdown menu? If there is, it should be black to like the rest.
Hi @Baybeezhelp ,
You try replace below code:
{%- if template contains 'index' -%}
{%- endif -%}
Hope it can help you
1 Like