Bold Particular Submenu Items

Topic summary

Goal: Make the “Bikini Tops” and “Bikini Bottoms” submenu items display in bold on a Shopify store.

Context: Shopify theme customization via theme.liquid (the main layout file that controls global HTML/CSS includes).

Proposed solutions:

  • Insert custom CSS in theme.liquid before the closing tag. A screenshot was provided showing the bolded result.
  • Alternatively, add CSS before in theme.liquid targeting the specific menu item anchor IDs:
    • a#HeaderMenu-swimwear-bikini-tops { font-weight: bold !important; }
    • a#HeaderMenu-swimwear-bikini-bottoms { font-weight: bold !important; }

Notes:

  • Both methods rely on CSS to target the submenu items by their IDs and set font-weight to bold with !important.
  • An image was included to illustrate the successful styling change.

Outcome: The store owner confirmed the CSS approach worked perfectly. The issue is resolved; no outstanding questions.

Summarized with AI on December 19. AI used: gpt-5.

Hello,

I am trying to bolden the “Bikini Tops” and “Bikini Bottoms” Sub Menus on my website.

https://xjswimwear.com/

I can’t seem to figure it out however. Can someone please assist?

Thanks

@XJSwimwear ,

Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file theme.liquid

Step 3: Insert this code above tag:


Result:

If it helps you, please like and mark it as the solution.

Best Regards :heart_eyes:

1 Like

Hello @XJSwimwear

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

a#HeaderMenu-swimwear-bikini-tops { font-weight: bold !important; } a#HeaderMenu-swimwear-bikini-bottoms { font-weight: bold !important; }

my reply helpful? Click Like to let me know!
your question answered? Mark it as an Accepted Solution.

1 Like

Thank you so much, that worked perfectly!