Goal: Change a single menu item (“Christmas”) to red in the Shopify Flex theme using CSS.
Solution provided: Add a custom CSS rule in Online Store > Edit code > Assets > Style.scss targeting the menu link by its URL (attribute selector):
.navbar-link.header__link[href=“/collections/2022-christmas”] { color: red !important; }
This targets the specific anchor (href) and forces the red color. The code snippet is central to the solution.
Outcome: The desktop/menu solution worked (acknowledged by the requester).
New development: Follow-up questions ask how to apply the same styling in the mobile menu.
Status: The mobile-menu-specific selector was not provided; the mobile solution remains unanswered and the thread is open. The next step would require identifying the mobile menu’s HTML classes/structure to apply a similar attribute-based CSS rule.
Hello, I am working with Flex theme from Out of the Sandbox and am wanting to find out how to change one menu item title to be a different color. I know it is possible with custom CSS but all the solutions I’m finding online are not working. I’m quite a beginner with coding. I am wanting to change our Christmas menu item to show up red.