how do i change the menu dropdown text and color?

Topic summary

Issue: Users need to customize dropdown menu styling to match their main navigation.

Initial Problem (Amin_5):

  • Dropdown menu font and size differ from main menu items
  • Included screenshot showing current appearance

Solution Provided:
Add CSS targeting .header__submenu a to control font-size and color, plus adjust dropdown width using header-menu .list-menu--disclosure. Example code provided with red color placeholder.

Follow-up:

  • User asked how to change from red to custom hex color
  • Advised to replace “red” with desired hex value (e.g., #5c2c06)

Related Question (LD_3):
Asked how to make “All Products” dropdown match existing custom CSS that styles main menu links with specific color (#5c2c06), bold font-weight, and underline on hover.

Status: Original issue resolved; secondary question about matching existing CSS styles remains unanswered.

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

its currently looks like this:

i want the dropdown menu to be the same font and size as the normal menu. how can i do this?

website: https://stubbornstudios.com/

1 Like

Hi @Amin_5

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:
.header__submenu a {
    font-size: 28px;
    color: red;
}

header-menu .list-menu--disclosure {
    width: 40rem;
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

1 Like

It worked but its red how can i change the hex color?

Just simply replace the word “red” with whatever you like. Be sure you don’t add anything or delete any sign. Then save.

How do I change the all products drop down menu so it matches with the rest of my current custom css?

.header__inline-menu a {
color: #5c2c06;
font-weight: bold;
}
.header__inline-menu a:hover {
color: #5c2c06;
text-decoration: underline;
}
ul.sub-menu a,
ul.dropdown a,
.header__submenu-item a {
color: #5c2c06;
font-weight: bold;
}
ul.sub-menu a:hover,
ul.dropdown a:hover,
.header__submenu-item a:hover {
color: #5c2c06;
text-decoration: underline;
}

This is my current custom css code, if that helps