Changing Just the word "Sale" in navigation header to be color red on Empire theme

Topic summary

Goal: Make only the “Sale” link in the Shopify Empire theme’s navigation header display in red, without affecting text on the Sale collection page.

Issue: A broad CSS selector (a[href^=“/collections/sale”] { color: red !important; }) turned most text red on the Sale page when visited.

Solution provided: Add a more specific, theme-class–based CSS selector to the theme’s CSS file (base.css/style.css/theme.css) via Online Store > Themes > Edit code > Assets. Use selectors targeting the nav item with the “sale” ID, e.g. 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; } This limits styling to the header navigation items only.

Outcome: The store owner confirmed the targeted CSS worked, making only the header “Sale” link red while leaving page content unchanged.

Status: Resolved. No further action requested; no ongoing disagreements or open questions.

Summarized with AI on January 9. AI used: gpt-5.

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

That worked!!

Thank you so much.

Welcome! Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!