How can I change a specific word color in the Empire theme menu?

Topic summary

Goal: change only the words “wholesale” and “apply to wholesale” in the Empire theme’s menu to color #F02222.

What was tried:

  • Guidance to inject custom CSS: one reply suggested adding code in theme.liquid after the tag (exact snippet not visible).
  • Another reply provided a base.css snippet targeting selectors like #Details-HeaderMenu-7 .header__menu-item and .mega-menu__link to set color #F02222. This successfully changed colors but affected additional menu items.

New issue:

  • The CSS selector was too broad, turning other menu text red. The requester asked how to restrict styling to only the word “wholesale.”

Latest update:

  • An “updated code” was posted in response (snippet not visible in the thread), presumably to narrow targeting. No confirmation yet from the requester that it solved the issue.

Notes:

  • CSS (Cascading Style Sheets) edits were central, specifically in theme.liquid and base.css.
  • Screenshots were provided to illustrate the menu items before/after and the unintended styling of other items.

Status: unresolved/ongoing. Awaiting confirmation whether the updated, more specific CSS fixes only “wholesale” without affecting other links.

Summarized with AI on January 6. AI used: gpt-5.

Hello,

I know this question has been asked several times but I am not having success following others’ answers. I am using the Empire theme and would like to change the word “wholesale” and “apply to wholesale” to color #F02222. I don’t have this theme published yet but below is a screenshot and a link to the unpublished version. I am hoping to show this to my client tomorrow so any help would be appreciated.

https://7j6njh1v2ftbltz6-64172556527.shopifypreview.com

Thank you,

Sarah

Hi @SBrymer

Please add this code to your theme.liquid file, after element in Online Store > Themes > Edit code


Hello @SBrymer :waving_hand:

In Shopify Admin, you can go to Edit theme code, open file base.css and add this code at the bottom

#Details-HeaderMenu-7 .header__menu-item,
#Details-HeaderMenu-7 .mega-menu__link {
    color: #F02222;
}

The result

Hope that helps!

Thank you so much!

Thank you !!!

1 Like

Thank you Dan. I just realized though that it is also turning some other words red besides wholesale. Is there a way just to specify the word wholesale?

Update code


You are welcome :slightly_smiling_face: