How to Change the Text Color of a Specific Menu Item to Pink?

Topic summary

A user seeks to change the text color of a specific menu item to pink on their Shopify store (draegerparis.com). The menu item in question is highlighted in a screenshot.

Two CSS solutions were provided:

Solution 1 (Made4uo-Ribe):

  • Target the menu item by its URL path using an attribute selector
  • Add CSS to base.css, style.css, or theme.css in the Assets folder
  • Code targets both default and hover states:
a[href="/en-en/pages/collection-camille-et-anna"],
a[href="/en-en/pages/collection-camille-et-anna"]:hover {
    color: pink;
}
  • Includes a screenshot showing the result

Solution 2 (WebDeskSolution):

  • Uses a more specific CSS selector targeting the menu structure
  • Add code to main.css file
  • Targets the item using nth-child selectors through the navigation hierarchy

Both solutions require editing theme code files through Shopify admin. The discussion remains open with no confirmation from the original poster about which approach worked.

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

Hello, do you know how to change the text color of the menu item outlined in red to pink?

Thank you !

My website : https://www.draegerparis.com/

1 Like

Hi @stg_herve

You like to change the color also when it hover?

If it 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:
a[href="/en-en/pages/collection-camille-et-anna"],
a[href="/en-en/pages/collection-camille-et-anna"]:hover {
    color: pink;
}

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

Hello @stg_herve

Please follow the steps below after logging into the Shopify admin:

  • Go to your Shopify Admin panel.

  • Click on Online Store > Themes.

  • Find the theme you want to edit and then click Actions > Edit code.

  • Search main.css

  • Insert the provided CSS code at the end of the file and save the changes.

.main-menu__content .main-nav li:first-child .main-nav__child .child-nav li:nth-child(3) ul.main-nav__grandchild li:nth-child(2)
{
    color: pink;
}

Please hit Like and Mark it as a Solution if you find our reply helpful.