Shopify themes, liquid, logos, and UX
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.
Solved! Go to the solution
This is an accepted solution.
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!
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?
This is an accepted solution.
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!
That worked!!
Thank you so much.
Welcome! Please don't forget to Like and Mark Solution to the post that helped you. Thanks!
Learn 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, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025