Header menus style

Topic summary

A user wants to customize dropdown menus (β€œWatches” and β€œMore”) to match the styling of their currency menu: white background with black text and a shadow effect on hover.

Solutions Provided:

Two contributors offered similar CSS-based solutions:

  • Navigate to: Online Store β†’ Themes β†’ Actions β†’ Edit Code β†’ base.css
  • Add CSS code targeting .header__submenu and .header__menu-item classes
  • Key properties: white background, black text (#000), and gray background on hover

Issue Encountered:

The original poster reported that hovering over one menu item changes the background of the entire menu instead of just the individual item. They also asked about removing spacing.

Latest Fix:

A refined CSS snippet was provided targeting .header__submenu .header__menu-item:hover with a specific background color (#c8c8c8) to address the hover issue affecting individual items rather than the whole menu.

Status: Awaiting confirmation if the latest solution resolves the hover behavior problem.

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

Hello, I want to make the dropdown-menus Watches and More to be displayed like the currency Menu shown on the picture. I want them to have white background with black letters and when I hover to have shadow effect.
Thank you in advance!

@PabloPier

  • Here is the solution for you
  • Please follow these steps:

  • Then find the base.css file.
  • Then add the following code at the end of the file and press β€˜Save’ to save it.
.header__submenu .header__menu-item {
    color: #000 !important;
    border-bottom: 1px solid black !important;
}
.js details>.header__submenu {
 background: white !important;
}
.js details>.header__submenu:hover {
  background: gray!important;
}
  • Here is the result you will achieve:

  • Please press β€˜Like’ and mark it as β€˜Solution’ if you find it helpful. Thank you.
1 Like

Hello @PabloPier
Go to online store ---------> themes --------------> actions ------> edit code------->base.CSS
add this code at the very end of the file.

.js details>.header__submenu {
 background: white !important;
}
.js details>.header__submenu:hover {
  background: gray!important;
}
.header__submenu .header__menu-item {
    color: #000 !important;    
}

If this was helpful, hit the like button and mark the job as completed.
Thanks

1 Like

Hi, thank you for the reply but when I hover the background is changed on all the tabs:

And also can we remove the space?

Hi, when I hover over one tab the background is changed on the whole menu

.header__submenu .header__menu-item {
    color: #000 !important;
}
.js details>.header__submenu {
 background: white !important;
}
.header__submenu .header__menu-item:hover {
  background: gray!important;
}

@PabloPier can you try it

1 Like

Please add this code

.header__submenu .header__menu-item:hover {   
    background-color: #c8c8c8 !important;
}

let me know if this works.

1 Like