Make the header content (drawer menu and icons) a different color on the landing page

Make the header content (drawer menu and icons) a different color on the landing page

aclothingbrand
Tourist
10 0 7

Hi! 

 

I currently have a transparent header on the landing page with white content (logo, drawer menu and icons). I managed to make the header background white with a black logo on all the other pages but I'm struggling to make the icons and the drawer menu black/dark blue on the other pages. Does anyone know how to do this? Would appreciate it a lot!

 

This is what the other pages look like:

Screenshot 2024-08-28 at 14.46.03.png

This is what the landing page looks like (nothing needs to be changed here)

Screenshot 2024-08-28 at 14.51.47.png

 

This is what I want the other pages to look like:

Screenshot 2024-08-28 at 14.48.00.png

 

Kind regards,

Aclothingbrand.

Replies 4 (4)
aclothingbrand
Tourist
10 0 7

someone asked for my email to fix it but he deleted the reply

 

Made4uo-Ribe
Shopify Partner
7913 1911 2343

Hi @aclothingbrand 

Would you mind sharing your store URL? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
aclothingbrand
Tourist
10 0 7

Hi! I've send you a private message.

 

Made4uo-Ribe
Shopify Partner
7913 1911 2343

Thanks for the info, check this one. 

Please replace this on the code you have in the theme.liquid. And Place this code before the </head>

 

{% if template.name == 'index' %}
<style>
.header__icon.link, 
.header__active-menu-item, 
.disclosure__button, 
.header__heading-link .h2 {
    color: white !important;
}
</style>
{% else %}
<style>
.header__icon.link, 
.header__active-menu-item, 
.disclosure__button, 
.header__heading-link .h2 {
    color: black !important;
}
</style>
{% endif %}

 

 And Save. 

 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.