Change The Color Of A Single Main Menu Item

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

1 Like

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; 
}

I hope it help.

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

5 Likes

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

1 Like

Yeah, same store?

Check this one.

Same Instruction.

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

And Save.

Result:

I hope it help.

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

yes please.

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.

Thanks in advance for your help.

Kind regards,

Erin

1 Like

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!

Hello,

Thank you for your reply.

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

1 Like

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:

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

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

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?

Thanks,

Erin

1 Like

Hi,

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

Theme: Refresh

Any solution?

1 Like

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.

Hello @sundancekid

Wouyld you mind to share your store URL? Thanks!

https://golfuppsala-online.myshopify.com

It´s under construction though.. :slightly_smiling_face:

Its password protected.

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

1 Like

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:

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

1 Like

Amazing, that works. Thank you!

1 Like

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