Re: Change The Color Of A Single Main Menu Item

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
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

View solution in original post

Replies 99 (99)

Made4uo-Ribe
Shopify Partner
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
sunshinethrift
Tourist
3 0 3

Hello,

 

Thank you for your reply.

 

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

Made4uo-Ribe
Shopify Partner
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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
8167 1963 2402

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. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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
8167 1963 2402

Hello @sundancekid 

Wouyld you mind to share your store URL? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
sundancekid
Visitor
2 0 1

https://golfuppsala-online.myshopify.com

It´s under construction though.. 🙂 

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Its password protected. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
mmoonndd
Tourist
3 0 1

Hi can you help me with this, same problem, same theme.

I want to make my On Sale menu in red color

https://diyevolution.com.au/

 

Thank you

Raymond
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
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
kealab
Visitor
2 0 2

Amazing, that works. Thank you!

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Wlecome, 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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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
8167 1963 2402

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!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
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

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Hi, 

Is your problem solve? if not then please share the updated URL store. Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
SnabbaSimon
Excursionist
15 1 2

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
Excursionist
15 1 2

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.

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Which navigation word you like to change color? 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
maison49
Visitor
1 0 0

Hi, 

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

any help is appreciated. Thank you

Made4uo-Ribe
Shopify Partner
8167 1963 2402

is this solve? 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
powerH64
New Member
6 0 0

Hi 

 

Any chance you can assist me please? Trying to make one single item a different colour. ( www.powerhome.co.za). under my main menu header the " TRACK MY ORDER" part. to Blue. I have theme.css and I am using the Electro theme and dont have base.css. If tried multiple ways to do this but not having any luck. 

powerH64
New Member
6 0 0
Made4uo-Ribe
Shopify Partner
8167 1963 2402

Hi @powerH64 

I apologize for the oversight. Please provide another link or a preview. Then mention me so I can comment before it expires. Thank you!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
powerH64
New Member
6 0 0

https://powerhome.co.za/

 

In the main menu " TRACK YOU ORDER"

powerH64
New Member
6 0 0
Made4uo-Ribe
Shopify Partner
8167 1963 2402

Thank you for the info, do you like to change the mobile aslo? 

This is for te dekstop and mobile. 

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the main.css(base.css, style.css or theme.css)

Then place the code below at the very bottom of the file.

 

li.menu-item > a[href="https://powerhome.co.za/apps/track123"], 
li.menu-item.menu-mobile-item a[href="https://powerhome.co.za/apps/track123"] {
    color: blue;
}

 

And save. 

Result:

Made4uoRibe_0-1727789551792.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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
powerH64
New Member
6 0 0

Not working.

 

Can you advise if I am putting in the code correctly please? @Made4uo-Ribe 

 

see attached image. Screenshot (289).png

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Yes, It correct. Can you try to add on the header.css? Thanks!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
powerH64
New Member
6 0 0

@Made4uo-Ribe - Sorry can you expand on what you mean by " can you try add on the header.css"? been trying a lot of methods but not getting it right. Thank you 

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Sorry Im not clear. Instead of theme.css

From you Admin page, go to Online Store > Themes

Select the theme you want to edit

Under the Asset folder, open the header.css

Then place the code below at the very bottom of the file.

 

li.menu-item > a[href="https://powerhome.co.za/apps/track123"], 
li.menu-item.menu-mobile-item a[href="https://powerhome.co.za/apps/track123"] {
    color: blue;
}

 

And Save. 

 

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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Katerina_Red
Excursionist
22 1 4

Hi!

 

I triet the solutions above but none worked for me so far!

My theme is SENSE.

 i want to make this https://naturalhellenia.com/collections/special-offers red

 

Thank you!

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Hello, 

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#HeaderMenu-sales span {
    color: red !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1713454750267.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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Katerina_Red
Excursionist
22 1 4

Yes that worked!

I inserted the code in Custom CSS.

 

Thank you!

Made4uo-Ribe
Shopify Partner
8167 1963 2402

Welcome!

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.
Katerina_Red
Excursionist
22 1 4

Do you happen to know how can i add an icon on that menu item?

And how to make it red also in mobile version?

 

Thank you 🙂

Made4uo-Ribe
Shopify Partner
8167 1963 2402

To add and icon you need to insert code to the liquid file. Youll need a developer to do it. Seems liek you already colored red on mobile. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.