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
5089 1215 1483

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

Made4uo-Ribe
Shopify Partner
5089 1215 1483

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
5089 1215 1483

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
5089 1215 1483

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
5089 1215 1483

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
5089 1215 1483

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


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
5089 1215 1483

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
5089 1215 1483

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