Hello, I would like to change color of the text in the header and also change color of the search and cart icon. Thanks
https://c31a31-2.myshopify.com/
pass: owhown
A user seeks to change the text and icon colors in their website header, specifically for menu items, search, and cart icons.
Multiple solutions provided:
base.css or theme.css targeting .header__menu-item, .header__active-menu-item, and .header__icon classescolor: white !important; or replace ‘white’ with desired hexadecimal color valuestheme.liquid file above the </head> tagImplementation steps:
base.css or theme.liquid fileFollow-up request:
The original poster asks for additional code to remove underline and hover/active page colors from the menu.
Discussion remains open with the secondary question unanswered.
Hello, I would like to change color of the text in the header and also change color of the search and cart icon. Thanks
https://c31a31-2.myshopify.com/
pass: owhown
Add this code in your base.css or theme.css:
.header__menu-item, .header__active-menu-item, .header__icon {
color: white !important;
}
Replace ‘white’ with the color you want! (You can also use hexadecimal values, for example: #3B8B58)
Hi @Cukrovinky
This is Richard from PageFly - Shopify Page Builder App
Please add this code to your theme.liquid above the to get this solved
Step 1: Online Stores > Themes > More Actions > Edit code
Step 2: click on theme.liquid and paste the code above the
Hope this can help you solve the issue
Best regards,
Richard | PageFly
Hello @Cukrovinky ![]()
In Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom
.header__menu-item,
.header__active-menu-item,
.header__icon svg {
color: #FFFFFF !important;
}
The result
Hope that helps.
Hi Cukrovinky,
In Shopify Admin, navigate to “Edit theme code”, then open the “base.css” file and add the following code at the end:
.header__menu-item, .header__active-menu-item, .header__icon{
color: red;
}
If I managed to help you then, don’t forget to Like it and Mark it as Solution!
Hi cukrovinky,
Follow these steps :
Go to Online Store
Edit Code
Find base.css file
And put this code in the botom
.header__menu-item span {
color: white;
}
.header__icon .icon {
color: white;
Thanks for the solution. Can you also do code that removes the underline and color for hover and active page of the menu?