Solved

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

Btoup2023
Tourist
4 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
5133 1226 1501

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


View solution in original post

Replies 4 (4)

ayan_ali
Shopify Partner
32 1 1

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

Made4uo-Ribe
Shopify Partner
5133 1226 1501

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!

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com


Btoup2023
Tourist
4 0 1

That worked!! 

 

Thank you so much. 

Made4uo-Ribe
Shopify Partner
5133 1226 1501

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

Please don't forget to 

Like

 and 

Mark Solution 

to the post that helped you. Thanks!
Sip, savor, and support – your

Coffee Tip

 helps us keep coding magic.❤️❤️❤️
Need a knowledgeable developer? Come and visit us at

Made4uo.com