Change single menu item background colour

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

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

Like this -

Want background in these color -

1 Like

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

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

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

1 Like