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

Solved

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

Btoup2023
Tourist
7 0 1

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/

 

Screen Shot 2024-01-02 at 11.49.51 AM.png

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10196 2420 3064

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:

Made4uoRibe_0-1704224132735.png

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 4 (4)

ayan_ali
Shopify Partner
42 2 2

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?

Want me to implement it for you, here's my info, I will make any changes you want with just a mail:
Email: ayanrjpoot@gmail.com

Stores helped this month : 12

Made4uo-Ribe
Shopify Partner
10196 2420 3064

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:

Made4uoRibe_0-1704224132735.png

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Btoup2023
Tourist
7 0 1

That worked!! 

 

Thank you so much. 

Made4uo-Ribe
Shopify Partner
10196 2420 3064

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.