I want a different colour for the menu and the rest of the site

Solved

I want a different colour for the menu and the rest of the site

albestudios
Excursionist
44 0 4

Hello,
I'm in the process of creating a website for my clothing brand and I'd really like to have my logo and my text welcome menu in white and then on the other pages of my site in black. ( i have the dawn theme ) 

 

I can't do it, if anyone has a solution please let me know.

 

Here is the link to my site ( in construction) :

https://albesutdios.myshopify.com/

 

thank you

 

Accepted Solution (1)

Dan-From-Ryviu
Shopify Partner
9527 1913 1948

This is an accepted solution.

Please add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code 

{% if template == 'index' %}
<style>
.header__icon .icon,
.header__menu-item { color: #fff !important; }
.header__heading-logo { filter: invert(1); }
</style>
{% endif %}

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

View solution in original post

Replies 4 (4)

Dan-From-Ryviu
Shopify Partner
9527 1913 1948

This is an accepted solution.

Please add this code to theme.liquid file, after <head> in Online Store > Themes > Edit code 

{% if template == 'index' %}
<style>
.header__icon .icon,
.header__menu-item { color: #fff !important; }
.header__heading-logo { filter: invert(1); }
</style>
{% endif %}

- Helpful? Like and Accept solution! or Buy me coffee
- Ryviu - Reviews & QA app: Collect product reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Shopee, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image: Easy and fast to create Photo Gallery, Lookbook, Shop The Look.
- Ryviu: Aliexpress Reviews - AliExpress Reviews Importer, one-click import aliexpress reviews, export reviews to CSV file.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

BSSCommerce-HDL
Shopify Partner
2292 842 1057

Hi @albestudios

Step 1: Go to Shopify Admin -> Online Store ->Theme -> Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above </head> tag:

 

{% if template.name == 'index' %}
    <style>
    sticky-header.header-wrapper {
       background-color: white !important;
    }
    sticky-header.header-wrapper .header__menu-item span {
       color: black !important;
    }
    </style>
{% endif %}

 

 

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you  😍

 

Sale banner, pop ups: Customize your sale banner, pop-ups and create countdown bar to boost conversion rate.
Simicart: Transform your Shopify store into a stunning and fully functional mobile app with just a few simple steps.
Product Labels & Badges:
Get more sales with striking labels, badges, and banners from our 10,000+ available templates.

BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

albestudios
Excursionist
44 0 4

Hi thank you for your help, 

but at the end it only change the background in white not the texte. 

but someone give me a code who worked. 

 

Thank you so much ❤️

Sangeetanahar
Explorer
541 36 69

Hello @albestudios 

Go to online store ----> themes ----> actions ----> edit code ---->Theme.liquid
add this code before the </head>

{% if template == "index" %} 
{% style %} 
ul.list-menu.list-menu--inline li a {
    color: #fff;
}
.header__heading-logo-wrapper {
    filter: invert(1);
}
{% endstyle %} 
{% endif %}

uy me a Pizza


If this was helpful, hit the like button and accept the solution.
Thanks

Was I helpful?

Buy me a coffee



Want to modify or custom changes or bug fix on store . Or Need help with your store? Or -Want Complete Storefront
Email me -sangeetarahuldhiman@gmail.com - Skype: live:sangeetarahuldhiman -Whatsapp: +917009811712
Checkout Some Free Sections Here