Looking to decrease the menu hover line weight by half. See screenshot below for reference:
Hi @duart2023
To complete your requests, please follow these steps:
- Go to Shopify Admin > Online Store > Theme > Customize > Theme Settings > Custom CSS https://prnt.sc/i8ljAMlHJUKl
- Paste the code provided into the Custom CSS section.
div#main-nav a.navigation__link::before {
bottom: 15px !important;
}
Here is the result: https://prnt.sc/tuDjrPn5YfFN
I hope this helps
Best,
Daisy
Hi @DaisyVo Unfortunately that didn’t work and the under line weight is still the same. Would you be able to assist?
Could you please try this code?
div#main-nav a.navigation__link::before {
bottom: 15px !important;
}
a.navigation__link::before {
width: 50% !important;
left: 50% !important;
transform: translateX(-50%) !important;
}
I hope this helps
Best,
Daisy
@DaisyVo Hi Daisy, unfortunately it just put a line permanently on the homepage now.
Hi @duart2023
Could you please try this step
Step 1: Go to Shopify Admin → Online Store ->Theme → Edit code
Step 2: Search file theme.liquid
Step 3: Insert this code above
{% style %}
a.navigation__link::before {
width: 50% !important;
left: 50% !important;
transform: translateX(-50%) !important;
}
div#main-nav a.navigation__link::before {
bottom: 15px !important;
}
{% endstyle %}
Best,
Daisy
Hi @duart2023
If you can locate the code, just change the height.
This is on the style.css folder from your code editor. Line 2406 the height size. From 2px reduce to 1px.
And Save.
If you can locate it.
Try this code.
- 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:
@media (min-width: 768px) {
.navigation .navigation__tier-1 > .navigation__item > .navigation__link::before {
height: 1px !important;
}
}
- And Save.
- Result:
Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!


