Changing underline style on collection titles in header (Dawn Theme)

Topic summary

Main issue: Adjust the hover underline on header collection titles (Dawn theme) to be thinner and spaced below the text.

What was proposed:

  • Edit theme CSS (base.css/theme.css/styles.css/theme.scss.liquid).
    • Option A (top-level menu): details[open]:hover > .header__menu-item { text-decoration-thickness: 0; text-underline-offset: 1.3rem; }
    • Option B (alternative thickness): details[open]:hover .header__menu-item { text-decoration-thickness: 1px; }
  • Apply same effect to dropdown (submenu) items:
    • .header__submenu.list-menu .header__menu-item { line-height: 30px; text-underline-offset: 1rem; }

Notes on terms:

  • text-decoration-thickness controls underline thickness.
  • text-underline-offset controls distance between text and underline.

Additional suggestion:

  • Change banner heading color to better highlight a discount (design recommendation, optional).

Outcome:

  • The initial header hover style change worked for the requester.
  • The submenu CSS was provided and accepted.
  • Issue appears resolved.

Context/attachments:

  • Screenshots illustrated the current underline and the desired thinner, offset underline style.
Summarized with AI on December 26. AI used: gpt-5.

Hey, I would like to know if there is a way to change the style of the underline that comes up when hovering over the collection titles in the header. I will add some pictures of the issue below.

My store url: https://bellevodesign.com/

Picture of the “Issue”:
Screenshot 2024-06-17 161622.png

Example of the style that i would like to change it to:
Screenshot 2024-06-17 161737.png

So basically just making the underline a bit thinner and having a little padding between the collection title and the underline. I would appreciate any help with this issue, thank you in advance!

Hi @bellevo ,
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code

Step 2: Search file base.css, theme.css, styles.css or theme.scss.liquid

Step 3: Insert the below code at the bottom of the file → Save

details[open]:hover > .header__menu-item {
    text-decoration-thickness: 0 !important;
    text-underline-offset: 1.3rem !important;
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

1 Like

Hi @bellevo

This is Henry from PageFly - Landing Page Builder App

You can try this code by following these steps:

Step 1: Go to Online Store->Theme->Edit code.

Step 2: Search file base.css

Step 3: Paste the below code at bottom of the file → Save

details[open]:hover .header__menu-item {

text-decoration-thickness: 1px !important;

}

In addition, I find that the headings on the banner should change color to make it more prominent, and users can easily see that there is a discount program.

Hope that my solution works for you.

Best regards,

Henry | PageFly

Works perfectly, thank you! One more question, is it possible to get this same effect on the collection titles in the drop down menu?

Picture:

1 Like

Hi @bellevo , Pls insert this code to your file css:

.header__submenu.list-menu .header__menu-item {
    line-height: 30px !important;
    text-underline-offset: 1rem !important;
}

Here is result:

Hope this can help you,

If our suggestions are useful, please let us know by giving it a like or marking it as a solution. Thank you :heart_eyes:

Thank you!

1 Like

@bellevo No problem. Have a good day :heart_eyes:

1 Like