We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Change single menu item background colour

Solved

Change single menu item background colour

hem0903
Explorer
60 0 11

I want to change background colour for shop button only in menu.

 

Store url - https://784221-79.myshopify.com/

Like this - 

hem0903_0-1731073605474.png

 

 

hem0903_0-1731073515686.png

 

Want background in these color - 

hem0903_1-1731073632891.png

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @hem0903 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

header > div > nav > ul > li:nth-child(4) span {
    background: #fde2c2;
    padding: 5px 20px;
    border-radius: 5px;
}

 

  • And Save.
  • result:
    Made4uoRibe_0-1731074169060.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
10211 2427 3079

This is an accepted solution.

Hi @hem0903 

Try this one. 

  1. From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  2. Find the theme that you want to edit and click on "Actions" and then "Edit code".
  3. 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:

 

header > div > nav > ul > li:nth-child(4) span {
    background: #fde2c2;
    padding: 5px 20px;
    border-radius: 5px;
}

 

  • And Save.
  • result:
    Made4uoRibe_0-1731074169060.png

     

 

 Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better! 

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

DaisyVo
Shopify Partner
4469 501 598

Hi @hem0903 

 

To complete your requests, please follow these steps:
  1. Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
  2. Paste the code provided into the Custom CSS section.

 

av.header__inline-menu ul.list-unstyled > li:last-child {
    background: #B8DCBE;
    color: white;
}

 

 

Here is the result: https://prnt.sc/VCuVsnUN_E2T
 
I hope this helps
 
Best,
 
Daisy

 

Please let us know if our reply is helpful by giving it a Like or marking it as a Solution!

Avada SEO & Image Optimizer - The #1 SEO solution