How can I change the 'Home' button color on my menu?

Solved

How can I change the 'Home' button color on my menu?

caroline32
Visitor
3 0 0

I have just changed the menu color from white to black with the code listed below, but the "Home" tab didnt change to black. please help!

a.header__menu-item.header__menu-item.list-menu__item.link.link--text.focus-inset {color: black !important;}

summary.header__menu-item.list-menu__item.link.focus-inset {color: black !important;}

Accepted Solution (1)
drakedev
Shopify Partner
704 153 246

This is an accepted solution.

You can comment your code and try this

.header__active-menu-item {
    color: red;
}
If my answer was helpful click Like.
If the problem is solved remember to click Accept Solution.
Shopify/Shopify Plus custom development and support: You can hire me for simple and/or complex tasks.

View solution in original post

Replies 5 (5)

drakedev
Shopify Partner
704 153 246

Which Shopify theme are you using?

If my answer was helpful click Like.
If the problem is solved remember to click Accept Solution.
Shopify/Shopify Plus custom development and support: You can hire me for simple and/or complex tasks.
caroline32
Visitor
3 0 0

I use the Dawn theme. I just realized the Home button is only white because it's clicked on. meaning if I were to go to a different menu item, that one turns white. How would I change the color of the menu item once its clicked on?

drakedev
Shopify Partner
704 153 246

This is an accepted solution.

You can comment your code and try this

.header__active-menu-item {
    color: red;
}
If my answer was helpful click Like.
If the problem is solved remember to click Accept Solution.
Shopify/Shopify Plus custom development and support: You can hire me for simple and/or complex tasks.
caroline32
Visitor
3 0 0

Thank you! How would I change the menu color to just apply to the desktop view and not the mobile view?

drakedev
Shopify Partner
704 153 246

You can use CSS media queries. Dawn mobile menu breakpoint is at 989px therefore this code should work and change the menu link colors only on desktop view

@media screen and (min-width:990px) {
  .header__active-menu-item {
    color: red;
  }
}
If my answer was helpful click Like.
If the problem is solved remember to click Accept Solution.
Shopify/Shopify Plus custom development and support: You can hire me for simple and/or complex tasks.