I have the main menu font colour set to white. However, I don’t like how the menu items are not white when the are not active or selected - instead they are this faded white/turquoise colour, which is too similar to the background colour (see image below).
I would like all the menu items to be white and stay white - like I have set the colour in the main settings.
Any help would be appreciated. Theme is Dawn.
Hi @minikate
To change the color of all menu items to white in the Shopify Dawn theme, you can add some custom CSS. Here are the steps:
- From your Shopify admin, go to Online Store > Themes.
- Find the Dawn theme you are currently using and click on the “Actions” dropdown.
- Select “Edit Code”.
- In the left sidebar, locate and click on the “assets” folder to expand it.
- Click on the “base.css” file to open it in the code editor.
- Scroll down to the very bottom of the file and paste the following CSS code:
.header__inline-menu .header__menu-item span {
color: white !important;
}
- Click the “Save” button.
This CSS code targets the menu item text specifically and sets its color to white. The !important declaration ensures this color is applied regardless of other styles.
After saving, all your menu items should appear white, both in their active and inactive states.
If you want to change the color of the menu items on hover as well, you can add this additional CSS code:
.header__inline-menu .header__menu-item:hover span {
color: white !important;
}
This will keep the menu items white even when hovering over them.
Hi @minikate
Would you mind to share your store URL? Thanks!
Thank you so much for your detailed explanation.
This worked for the header menu. However, the dropdown menu items are still that off-white colour, see image below. Do you know how to change these also?