Hello,
We have the empire theme and I am trying to change just the word “sale” in our navigation menu to be the color red, I found a code that worked through pixel union which was “a[href^=”/collections/sale"] {color: red !important;}" but then when you click on the sale page it changed most of the text red, and I don’t want that. Just the word in our header.
https://myelement.co.uk/
1 Like
I am sure we do it by basic CSS but i am not sure how Empire theme is coded can you please mail me the store URL that ends with .myshopify.com so I can request access from my Shopify Partner account and write the CSS?
Hi @Btoup2023
Check this one or replace on this one.
From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
Find the theme that you want to edit and click on “Actions” and then “Edit code”.
In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
li.navmenu-item.navmenu-basic__item.navmenu-id-sale a, li.navmenu-item.navmenu-item-parent.navmenu-id-sale.navmenu-meganav-sidenav__item a {
color: red !important;
}
And Save.
Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
1 Like
Welcome! Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!