Change the color of a single main menu item

Topic summary

Users are seeking CSS solutions to change the color of specific navigation menu items in their Shopify stores, primarily to highlight promotional sections like “Sale” in red.

Primary Solution Pattern:

  • Add custom CSS to the theme’s stylesheet (base.css, style.css, theme.css, or main.css)
  • Target specific menu items using CSS selectors based on their href or ID
  • Apply color changes for both desktop and mobile versions separately

Key Examples Provided:

  • Sale menu item: a[href="/collections/sale"] { color: red; }
  • Desktop dropdown: summary#HeaderMenu-swim { color: pink; }
  • Mobile menu: summary#HeaderDrawer-swim { color: pink; }
  • Bold + Red styling: Combine color: red !important; with font-weight: bold;

Common Variations:
Different themes (Impact, Symmetry, Flex) require slightly different CSS selectors. Solutions must account for both desktop navigation and mobile drawer menus using theme-specific element IDs.

The thread remains active with ongoing troubleshooting requests, as some users report the provided code doesn’t work for their specific theme configurations.

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

Hi @Sauravb

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:

a[href="/collections/sale"] { 
    color: red;
}

And Save.

Result:

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

1 Like