Header Navigation Hover effects

Header Navigation Hover effects

ellacoker
Shopify Partner
287 1 74

Hello,

Is someone able to help me with one small error in my header navigation button hover effect that I have just coded?

It looks how I want it, except that I do not want the active page to trigger the hover effect, the text is also black in the active page. Is someone able to help me add something to my code in base.css to fix this?

See attached screenshots. Thank you very much in advance.

URL: https://sausagesociety.myshopify.com/

PW: ellaella

Screenshot 2025-05-01 at 15.43.27.pngScreenshot 2025-05-01 at 15.43.22.png

Screenshot 2025-05-01 at 15.46.00.png

Replies 3 (3)

Moeed
Shopify Partner
7511 2029 2495

Hey @ellacoker 

 

Follow these Steps:

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>
.header__active-menu-item:hover {
    color: white !important;
}
</style>

RESULT:

Moeed_0-1746078877271.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


GTLOfficial
Shopify Partner
852 176 191

Hello @ellacoker 
Go to online store ----> themes ----> actions ----> edit code ----> base.css
add this code at the end of the file and save.

.header__menu-item:hover .header__active-menu-item {
text-decoration-thickness: .2rem;
color: white !important;
}

result
9.png


If this was helpful, hit the like button and accept the solution.
Thanks

- Buy me a Pizza
- If helpful then please Like and Accept Solution.
- Want to modify or custom changes or bug fix on the store Hire me. GTL web solutions
- Want Complete Storefront: Send an email ⇨- Email: info@gtlofficial.com - Skype: ritesh_27dh

BiDeal-Discount
Shopify Partner
514 58 125

Hi @ellacoker 

to make the active menu item have white color. let try to add this code to end of file base.css:

header .header__menu-item:hover{
  color: #fff;
}
- Helpful? Like & Accept solution!
- BiDeal Bundle Volume Discounts: Upsell with bundles, quantity breaks, volume discounts. AOV+ with gifts, shipping & progressive cart
- Bify app: Shopify automatic discount solutions
- Contact me? support@bify.app or WhatsApp: +84974709330