Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Shopify Community Downtime: The Shopify Community will be down December 5th for 15 minutes between 3pm and 4pm EST. Thank you for your understanding.

How can I remove underlines and enable hover effect in menu items?

Solved

How can I remove underlines and enable hover effect in menu items?

Cukrovinky
Tourist
22 0 2

Hi, I would like to remove the underline of the text in header menu and also in submenu.

And also I would like to make the submenu open on hover effect, to remove the thing that I have to click on it to open the submenu. Thanks

https://c31a31-2.myshopify.com/ pass: password

Cukrovinky_0-1706114731740.png

 

Accepted Solution (1)

Made4uo-Ribe
Shopify Partner
9061 2165 2672

This is an accepted solution.

Hi @Cukrovinky 

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:

 

details[open]>.header__menu-item, .header__submenu .header__menu-item:hover {
    text-decoration: none !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1706115337701.png

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.

View solution in original post

Replies 2 (2)

Made4uo-Ribe
Shopify Partner
9061 2165 2672

This is an accepted solution.

Hi @Cukrovinky 

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:

 

details[open]>.header__menu-item, .header__submenu .header__menu-item:hover {
    text-decoration: none !important;
}

 

And Save. 

Result:

Made4uoRibe_0-1706115337701.png

 

 

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

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Create custom Shopify pages effortlessly with PageFly's drag-and-drop ⚙️.
Cukrovinky
Tourist
22 0 2

Thanks, can you also help me with code that makes the submenu open on hover, that I don't have to click on it. Thanks