How to add underline to the mega menu text

Solved

How to add underline to the mega menu text

Ravenwoodstore
Tourist
7 0 5

Hi guys,

 

How can I add an underline effect to each subheading in the mega menu? 

 

See image below for where I want the text to be underlined when you hover over it with the mouse.(Every heading on all of the menu)

 

Ravenwoodstore_0-1727099125408.png

Thanks!

 

Accepted Solution (1)
BSS-TekLabs
Shopify Partner
2350 702 828

This is an accepted solution.

- Here is the solution for you @Ravenwoodstore 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
.mega-menu__link:hover {
    text-decoration: underline !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1727106217641.png

BSSTekLabs_1-1727106224440.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

View solution in original post

Replies 10 (10)

websensepro
Shopify Partner
1221 136 156

Hi @Ravenwoodstore , kindly provide your store URL please. Thanks

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
Ravenwoodstore
Tourist
7 0 5

Sorry guys!

store: ravenwood.store

password: moths

Sam416
Shopify Partner
35 2 4

Hi @Ravenwoodstore Please provide the store url ?

Shopify Expert | E-commerce Specialist | Custom Shopify App Development | Shopify Theme Customization & Bug Fixing | Buy Me A Coffee| Hire me| Contact Me on WhatsApp

Made4uo-Ribe
Shopify Partner
8376 2004 2463

Hi @Ravenwoodstore 

Your store is password protected. 

If this fixed your issue Likes and Accept as Solution is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.

BSS-TekLabs
Shopify Partner
2350 702 828

Hello @Ravenwoodstore 
Our team is ready to help you.
Please share your website URL so that we can check and assist you.

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now

Ravenwoodstore
Tourist
7 0 5

Sorry guys:

store: ravenwood.store

password: moths

BSS-TekLabs
Shopify Partner
2350 702 828

This is an accepted solution.

- Here is the solution for you @Ravenwoodstore 
- Please follow these steps:
1. Go to Online Store --> Theme --> Edit code.
2. Open your theme.liquid file
3. In theme.liquid, paste the below code before </head> and press 'Save' to save it

<style>
.mega-menu__link:hover {
    text-decoration: underline !important;
}
</style>

- Here is the result you will achieve:

BSSTekLabs_0-1727106217641.png

BSSTekLabs_1-1727106224440.png

 

- Please press 'Like' and mark it as 'Solution' if you find it helpful. Thank you.

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Ravenwoodstore
Tourist
7 0 5

Excellent! Thank you for the swift reply. 

BSS-TekLabs
Shopify Partner
2350 702 828

Glad to help you. Have a good day.

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


Salepify: Efficiently increase sales conversion with sale-driven features like auto add to cart, free gifts (free plan available)


Salemate: Boost your AVO with 2-layer offer, countdown upsell in your post purchase page


BSS Commerce - Full-service eCommerce Agency | Use Shopify for 1$ in the first month now
Made4uo-Ribe
Shopify Partner
8376 2004 2463

Thanks for the info, 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 "theme. Liquid" file. Find the </body> tag and paste the code below before the tag. 

 

<style>
.mega-menu li:hover > .mega-menu__link {
    border-bottom: 1px solid;
    border-color: rgb(var(--color-foreground));
    padding-bottom: 0; 
    display: inline-block;
}
</style>

 

And Save. 

Result:

Made4uoRibe_0-1727107305088.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 is highly appreciated. Coffee tips fuels my dedication.
Get EXPERIENCED Shopify developers at affordable rates—visit Made4Uo.com for quick quote!
Do not lost your Shopify store! Get FREE trial with ✔️ Rewind Backup: Automatic, reliable, stress-free.
Need THEME UPDATES but has custom codes? No worries, contact us for affordable price.