Goal: highlight a specific header menu item (“Pricing”) with a yellow background in a Shopify store.
Context: The requester could identify the item’s id/class via browser inspection but couldn’t reliably target it in theme.liquid or custom CSS, only managing a global header text color change.
Solution provided:
Add custom CSS at the bottom of theme.liquid, just above the tag.
Target the specific menu item by its id selector and apply styles, for example:
• background: yellow
• color: black
• border-radius: 10px
theme.liquid is the main Shopify layout file where global code can be inserted.
id/class are CSS selectors used to target specific elements.
Outcome: The “Pricing” item was successfully highlighted; confirmation of success followed.
Media: Screenshots were shared to illustrate the desired and achieved styling.
Open issue: A separate user asked how to target a button labeled “Shop Here” when spaces in the name complicate CSS selection; this follow-up remains unresolved in the thread.
Summarized with AI on December 12.
AI used: gpt-5.
I want to highlight a header CTA by adding a yellow background, but I can’t find a way to do this anywhere. I can easily find the id and class in the inspection view but I can’t tag it inside theme.liquid nor custom CSS in shopify theme editor.
Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.