Change color of a single item of mega menu prestige theme

Topic summary

A user wants to change the color of a specific mega menu item (“Sekretäre”) to light gray in both normal and hover states on their Shopify store using the Prestige theme.

Solution Provided:

  • Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
  • Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add custom CSS targeting the specific menu item using nth-child selectors:
    • Targets the 4th item in the first column of the mega menu
    • Applies color: lightgrey to both normal and hover states
  • Save changes

The solution uses CSS nth-child pseudo-selectors to precisely target the menu item without affecting other elements. A reference image was provided showing the desired outcome.

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

I would like to change the color to light gray of an item of the mega menu in normal view and also in hover for ‘Sekretäre

Image for reference,

https://ibb.co/TBXT1VyF

The store is https://damianomoebel.myshopify.com/

password damiano

Thanks for your help.

1 Like

Hi @urbantis

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:
mega-menu-disclosure > details > div > ul > li:nth-child(1) > ul > li:nth-child(4) > a,
mega-menu-disclosure > details > div > ul > li:nth-child(1) > ul > li:nth-child(4) > a:hover {
    color: lightgrey;
}

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