menu item background

Topic summary

A user seeks help adding a pill-shaped green background (#41543B) to the ‘Order Online’ menu item on their Shopify store.

Current Status:

  • One commenter notes a green background already exists on the menu item
  • Multiple developers have provided CSS solutions

Proposed Solutions:
All responses suggest adding custom CSS to the base.css file in the theme code editor:

  • Target selector: ul.list-menu #Details-HeaderMenu-2 or nav.header__inline-menu .list-menu li:nth-child(2)
  • Key properties: background: #41543B and border-radius: 20px (or 50px for more pronounced pill shape)
  • Text color adjustment: color: #ffffff to ensure readability against the dark green background

Screenshots demonstrate the expected visual outcome with the menu item displaying a rounded green background. The discussion remains open with no confirmation from the original poster on which solution was implemented.

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

Hi, could someone please advise me on how I could add a pill shaped green box in the colour #41543B around the menu item ‘Order Online’ on my website littlepaddocksflowers.com

Many thanks!

1 Like

@arlo1 the site already has a green background on the menu item.

I dont know if i got this right but from what i understood you can try this. In your base.css file from theme code editor add this at the very bottom of everything

nav.header__inline-menu .list-menu li:nth-child(2) {

background: #41543B ;

border-radius: 50px;

}

This should be the result

Shadab_dev_0-1751679485477.png

If you want to change color since black is not easily readable add this
#Details-HeaderMenu-2 .summary.list-menu__item{

color: #fff;

}

Hi @arlo1

Let add this custom CSS code to the bottom of base.css file in Admin → Sale Channels → Online Store → edit code your current theme:

ul.list-menu #Details-HeaderMenu-2 {
  background: #41543B;
    border-radius: 20px;
}
ul.list-menu #Details-HeaderMenu-2 summary.header__menu-item {
  color: #ffffff;
}

The result will be:

1 Like

Hello @arlo1

  1. From your Shopify Admin, navigate to Online Store > Themes > Edit Code
  2. In the Assets folder, open base.css and add your CSS code at the end
ul.list-menu #Details-HeaderMenu-2 {
background: #71e84b;
border-radius: 20px;
}
ul.list-menu #Details-HeaderMenu-2 summary.header__menu-item {
color: #ffffff;
}

1 Like