How can I modify menu link hover effects in the Modular theme?

How can I modify menu link hover effects in the Modular theme?

jr-rl
Tourist
24 0 2

Hello everyone,

 

When hover over linked menu items an underline appears under the link. I want to remove the underline and just make the text turn slightly lighter (as seen in images)

 

Could someone please help me which code to add, thank you!!

 

Theme is 'Modular'

Screenshot 2023-03-21 at 7.08.09 pm.png

Screenshot 2023-03-21 at 7.08.01 pm.png

 

I want it to look more like this 

Screenshot 2023-03-21 at 7.08.34 pm.png

Replies 6 (6)

Alok_Kasgar
Shopify Partner
112 26 27

Hi @jr-rl  Add below css

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the bottom of the file above </body> tag
<style>
.menu-item__link:hover{
opacity: 0.7!important;
}
.menu-item__link:after{
border-bottom: none!important;
}
</style>

Alok Kasgar
If helpful, please Like and Accept this Solution to help others too | Email: alokasgar@gmail.com
Jasoliya
Shopify Partner
4820 625 1225

@jr-rl 

Add this code in css file at bottom 

.menu .menu-item .menu-item__link:hover:after{border-bottom:none;}

 

Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here
jr-rl
Tourist
24 0 2

Thank you! this worked for the main menu but didn't work for the submenu drop down links. Is there a way to also make them behave the same.

I have tried the same code but replaced .menu-item__link:hover with submenu-item__link:hover but that did not seem to work 

Jasoliya
Shopify Partner
4820 625 1225

Add this code in same file

.submenu-item .submenu-item__link:hover:after{border-bottom: none;}
Want custom changes? hire me.
3 months of Shopify for $1/month. Look here.
Email us Or WhatsApp, Try our Free app for product bundles and Codify Order Cancel or Order edit
Want to get Free review and advice for sale on store ?? just text me here

websensepro
Shopify Partner
1127 115 138

1. Go to online Store

2. Edit the code

3. File name base.css

4. Pasted this code   

 

.header__menu-item:hover span {
text-decoration: none;
}

details[open] > .header__menu-item {
text-decoration: none;
}

Need a Shopify developer?
Hire us at WebSensePro
For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
Subscribe to our youtube channel or buy us a Cofee here

Free Shopify Beginner Tutorial

GemPages
Shopify Partner
5625 1261 1241

Hello @jr-rl 

 

It's GemPages support team and glad to support you today.

I would like to give you a solution to support you.

You can try with below code:

 

.menu .menu-item .menu-item__link:hover:after{
  border-bottom:none !important;
}
.menu .menu-item .menu-item__link:hover{
  font-weight: 100 !important;
  padding-left: 10px !important;
}

 

Hope my solution can work and support you!

Kind & Best regards!

GemPages Support Team.

GemPages - Build any high-converting store pages for any business


- If you find my reply helpful, please hit Like and Mark as Solution
- Get connected: App Store | Blog | Community | Help Center