How to add underline to the mega menu text

Solved

How to add underline to the mega menu text

Ravenwoodstore
Tourist
11 0 7

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
2401 695 835

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
1953 234 285

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

Need a Shopify developer? Hire us at WebSensePro For Shopify Design Changes/Coding
For Free Tutorials Subscribe to our youtube
Get More Sales Using Big Bulk Discount APP
Create Your Shopify Store For Just 1$/Month
Get More Sales Using Big Bulk Discount APP
Ravenwoodstore
Tourist
11 0 7

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
10203 2423 3069

Hi @Ravenwoodstore 

Your store is password protected. 

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.

BSS-TekLabs
Shopify Partner
2401 695 835

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
11 0 7

Sorry guys:

store: ravenwood.store

password: moths

BSS-TekLabs
Shopify Partner
2401 695 835

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
11 0 7

Excellent! Thank you for the swift reply. 

BSS-TekLabs
Shopify Partner
2401 695 835

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
10203 2423 3069

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 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.