Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
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;}
Solved! Go to the solution
This is an accepted solution.
You can comment your code and try this
.header__active-menu-item {
color: red;
}
Which Shopify theme are you using?
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?
This is an accepted solution.
You can comment your code and try this
.header__active-menu-item {
color: red;
}
Thank you! How would I change the menu color to just apply to the desktop view and not the mobile view?
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;
}
}
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025