How Do I Change The Header Menus Style Separately

Topic summary

A user wants to customize their Shopify header menu items with individual styling, including different colors and borders (as shown in an attached image).

Solution Provided:

  • Add custom CSS to the theme’s base.css/style.css file
  • Code creates white backgrounds with black borders for menu items
  • Uses media queries to apply styles only on screens wider than 749px
  • Adjusts padding, border-radius, and gap properties

Follow-up Issue Resolved:
The original poster requested removal of circular styling from subcategory items. Additional CSS code was provided to remove borders from submenu list items.

Open Question:
Another user asked how to change button background colors on hover or apply different background colors to individual buttons. This remains unanswered.

Status: Initial issue marked as solved, but the hover/individual color customization question is still pending.

Summarized with AI on November 11. AI used: claude-sonnet-4-5-20250929.

Hello!

I’m trying to change my header menu items color and style separately, to be like in this image here:

Andy106_0-1701643330296.png

Can anyone assist me?

site: https://o1wpcjjz2a3jgr0q-78669414739.shopifypreview.com

Thank you!

1 Like

Hi @Andy106

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:
@media only screen and (min-width: 749px){
nav.header__inline-menu li {
    background: white;
    border: 1px solid black;
    border-radius: 20px;
    padding: 0px;
}
ul.list-menu.list-menu--inline {
    gap: 20px;
}
.header__menu-item {
    padding: .9rem 2rem !important;
}
sticky-header.header-wrapper.color-background-1.gradient.header-wrapper--border-bottom {
    background: bisque !important;
}
}

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

1 Like

Perfect, thank you!

Solution is perfect, I was just wondering if there is a way for me to remove the circle for when I choose the subcategories, I mean for the subcategory to be normal without the circle style:

1 Like

Oh, sorry I didnt notive that one.

Add this code, on the base.css file.

@media only screen and (min-width: 749px){
ul#HeaderMenu-MenuList-2 li {
    border: none !important;
}
}

And save.

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

In addition to this, how would you change the button background color when hovering? Or having the background of each button a different color?