Solved

Change The Color Of A Single Main Menu Item

ShopJadeira
Tourist
4 0 3

Hello to all the Shopify community :-),


I need help for CSS coding on Studio Theme -> I would like to change the text color of only one of my main navigation menu to highlight it.

The "HALLOWEEN SPECIAL" navigation menu should appear In Orange rather than white 
I tried to quibble with the code but nothing to do, the color does not change. I'm having trouble identifying my menu or placing my code incorrectly on my CSS stylesheet.

Website - https://shopjadeira.com/

Thank You!

ShopJadeira_0-1693924121058.png

 

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
5414 1303 1601

This is an accepted solution.

Hi @ShopJadeira 

Try 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:

 

#HeaderMenu-halloween-special > span {
    color: #ff9900; 
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1693924373112.png

     

I hope it help. 

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 29 (29)

Made4uo-Ribe
Shopify Partner
5414 1303 1601

This is an accepted solution.

Hi @ShopJadeira 

Try 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:

 

#HeaderMenu-halloween-special > span {
    color: #ff9900; 
}

 

  • And Save. 
  • Result:
  • Made4uoRibe_0-1693924373112.png

     

I hope it help. 

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


ShopJadeira
Tourist
4 0 3

Is there also a chance to put that Orange color in side menu for phone users?

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Yeah, same store?

Check this one.

Same Instruction.

 

#HeaderDrawer-halloween-special {
    color: #ff9900; 
}

 

And Save. 

Result:

Made4uoRibe_0-1693925189978.png

 

I hope it help.

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


ShopJadeira
Tourist
4 0 3

yes please.

sunshinethrift
Tourist
3 0 3

Hello,

 

I have tried this solution in base.css but it doesn't seem to be working. Am I doing something wrong or is the theme I am using stopping me from making this change? I am using the Be Yours theme.

 

Screenshot 2024-02-01 at 08.34.40.png

Screenshot 2024-02-01 at 08.34.30.png

  

 

Thanks in advance for your help.

 

Kind regards,

Erin

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Hi @sunshinethrift 

Sorry, this code is not universal to all store. It writes according to store themes and design. If your looking same design on this, would you mind to share your store URL? 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


sunshinethrift
Tourist
3 0 3

Hello,

 

Thank you for your reply.

 

My store is https://sunshinethrift.co.uk

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Thanks for the info, check 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:

 

a.header__menu-item.header__menu-item--top.list-menu__item.focus-inset[href="/collections/new-in"] > span.label {
    color: orange;
}

 

And Save. 

Result:

Made4uoRibe_0-1706799127808.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


juvidesigns
Visitor
2 0 1

Any possibility of getting the code please to make 'Valentines" red in the main menu on both desktop and mobile for this website please, the theme is Broadcast- www.juvidesigns.com

sunshinethrift
Tourist
3 0 3

Hello,

 

Thank you for your quick reply.

 

I have copied this code into base.css but it doesn't seem to have worked. See images. Can you help with this?

 

Screenshot 2024-02-02 at 16.29.11.png

Screenshot 2024-02-02 at 16.29.01.png

 

Thanks,

Erin

Made4uo-Ribe
Shopify Partner
5414 1303 1601

You can add !important to it. 

a.header__menu-item.header__menu-item--top.list-menu__item.focus-inset[href="/collections/new-in"] > span.label {
    color: orange !important;
}

And Save. 

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


Ballistic-sport
Shopify Partner
2 0 0

Hi i wold like write WEEKLY SALE in red in my shop menu can you help me please

https://ballistic-sport.com/

Thank you

sundancekid
Visitor
2 0 1

Hi,

 

I got it correct on my desktop version but my mobile site didn´t get right.

Theme: Refresh 

Any solution?

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Hello @sundancekid 

Wouyld you mind to share your store URL? 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


sundancekid
Visitor
2 0 1

https://golfuppsala-online.myshopify.com

It´s under construction though.. 🙂 

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Its password protected. 

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


kealab
Visitor
2 0 2

Hi Would you be able to help? Trying to make "SALE" in top nav both desktop and mobile red. https://keala-bikinis.com/

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Hi @kealab 

Check 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:

 

a[href="https://keala-bikinis.com/collections/sale"] {
    color: red;
}

 

And save. 

Result:

Made4uoRibe_0-1709217462600.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


kealab
Visitor
2 0 2

Amazing, that works. Thank you!

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Wlecome, 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


Larchi22
Tourist
6 0 3

Hi, I am trying to do the same for my store on Desktop and Mobile, but have my menu item "boosted sale" in red as oppose to blue like every other one. My theme is Pipeline and my store URL is www.boostedkicksau.com

Thank you very much!

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Hi @Larchi22 

Check 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:

 

a.navlink.navlink--toplevel[href="/collections/black-friday-sale"][data-top-link], a.sliderow__title[href="/collections/black-friday-sale"]
 {
    color: red;
}

 

And Save. 

Result:

Made4uoRibe_0-1709924890055.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


Gasper
Tourist
3 0 1

Hi @Made4uo-Ribe,

 

I tried all the options above, but looks like I have a different code in my theme 😞

My site: www.nort.si and I would also like to color SALE wording in main menu both on desktop as on mobile into red (if possible color #A30C13).

 

Thank you!!!

Made4uo-Ribe
Shopify Partner
5414 1303 1601

Its okay, check this one then. 

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:

 

a.navigation__link[href*="/collections/sale"] {
    color: #A30C13;
}
 

 

And Save. 

Result:

Made4uoRibe_0-1710355312183.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


Gasper
Tourist
3 0 1

Works like magic! Thank you!

Only issue I see now is that first item on the left in the drop down menu is also colored now? 

Gasper
Tourist
3 0 1

Hi @Made4uo-Ribe, I updated theme today to the latest version and now going into code editor I have none of the files you are mentioning (base.css, style.css or theme.css), so no idea where to add the code 🙂

Thanks!

 

Gasper

SnabbaSimon
Tourist
11 0 1

Hello Made4uo. 

I'am having a bit of trouble also, Would you mind checking on my site? 

https://guldklippet-se.myshopify.com/

Thanks in advance,
Simon.

SnabbaSimon
Tourist
11 0 1

Hello Made4uo. 

I'am having a bit of trouble also, Would you mind checking on my site? 

https://guldklippet-se.myshopify.com/

Thanks in advance,
Simon.

maison49
Visitor
1 0 0

Hi, 

I am having the same issue with my site  Maison49.com

any help is appreciated. Thank you