We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to change the active status color on the navigation menu on just the specific part?

Solved

How to change the active status color on the navigation menu on just the specific part?

poshpush
Explorer
52 0 5

So I set the menu hover color and its active status color as the same color. For the button, "Book Now", I changed the background color when it's hovered. But since the active status color and the hovered background color are the same, when I hover the "book now" button, the text becomes invisible. How can I change the active status color just for the specific part, which is book now text? Here's the page with the issue and code I used: https://www.poshpush.me/pages/services

 

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


.header__active-menu-item {
  text-decoration: none; 
  color: #93859F; 
   }

.header__menu-item:hover {
color: #93859F;
}


#HeaderMenu-book-now:hover {
color: #F8EBEB;
background: #93859F; 
}

 

Screenshot 2025-06-17 at 10.58.52 PM.png

Screenshot 2025-06-17 at 10.59.04 PM.png

Accepted Solution (1)

devcoders
Shopify Partner
1654 190 545

This is an accepted solution.

Hello @poshpush 

 

1. From your Shopify Admin, navigate to Online Store > Themes > Edit Code
2. In the Assets folder, open base.css and add your CSS code at the end

 

.header__menu-item:hover .header__active-menu-item {
color: #000;
}

 

devcoders_0-1750213060952.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!

View solution in original post

Replies 3 (3)

Dan-From-Ryviu
Shopify Partner
12073 2359 2539

You can do that by adding this code to Custom CSS in Online Store > Themes > Customize > Theme settings.

a#HeaderMenu-book-now:hover span {
    color: #e2acc7;
}

Screenshot 2025-06-18 at 09.20.03.png

 

- Helpful? Like & Accept solution!
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.

devcoders
Shopify Partner
1654 190 545

This is an accepted solution.

Hello @poshpush 

 

1. From your Shopify Admin, navigate to Online Store > Themes > Edit Code
2. In the Assets folder, open base.css and add your CSS code at the end

 

.header__menu-item:hover .header__active-menu-item {
color: #000;
}

 

devcoders_0-1750213060952.png

 

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!
devcoders
Shopify Partner
1654 190 545

Hello @poshpush 
Thank you for your response. It's good to know that it's worked for you. Kindly feel free to get back to me if you need any further assistance. If helpful, please like all posts.

Shopify Developer: Helping eCommerce Stores
If you need assistance with your store, feel free to contact us at devcodersp@gmail.com
WhatsApp No: +91 8516919310 If my assistance was helpful, please consider liking and accepting the solution. Thank you!