Remove Main & Submenu Underline When Hover - Dawn

Hi there,

I want to remove the underline for “Shop” and its subcategory items when hover. Can anyone please help? My url: veepli.com. No password.

Thank you.

1 Like

Hi @Tara123 ,

Add This Css in your Edit Code > Base.css File

header.header .header__menu-item {
    text-decoration: none;
}

If you require further help to optimize or customize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!

Best Regards,
LuffyOnePiece

Hi @Tara123

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

.header__submenu .header__menu-item:hover, .header__active-menu-item, summary#HeaderMenu-shop:hover, details[open] > .header__menu-item {
    text-decoration: none !important;
}

And Save.

Result:

Note: I totally remove the underline, there is underline coming when you hover the submenu not only hovering the menu. Let me know if you dont want to remove that one.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Thank you so much! I do want to remove all the underlines. However, when a subcategory is selected, the underline is there again. Need to remove it as well.

Also, I want to change the submenue’s font color when hover. Can you please advise the code?

Thank you.