Re: Change text on hover

How can I change hover text color in my website header?

Rose1212
Excursionist
21 0 4

In the header I have placed my mouse over one of the links. It has disappeared.

I would like to change the color of the text from white to a more visible color on hover.

Can someone help me.

www.afterstory.co

Rose1212_0-1692939689012.png

 

Replies 5 (5)

lilyandtwitch
Excursionist
25 3 8

On your customization page, click on the header bar and go to the custom css section.

Try this:

.link:hover,
.header__active-menu-item:hover {
  color: red !important;
}

 Just change the color to whatever one you like.

 

.link- changes the menu options.

.header__active-menu-item- changes the menu option that is currently clicked on.

you can add :hover onto any element to customize its hover effect.

 

Hope this helps!

dbuglab
Shopify Partner
473 51 50

Hi @Rose1212 

Follow these Steps:

1) Go to Online Store
2) Edit Code
3) Find theme.liquid file
4) Add the following code in the file above </Head> tag

<style>
.link:hover,
.header__active-menu-item:hover {
color: #fff !important;
}
</style>
banned

INA_MSWEB
Shopify Partner
1281 144 164

Hi @Rose1212 


I hope you are doing good and welcome to the Shopify Community!
I am San from MS Web Designer.

Please add this css in your bottom of the base.css file:
.header__menu-item:hover, .header__menu-item:hover span {color: #000 !important;}

 



Regards,

San

If it’s helpful to you, please mark it as a solution.  


Need Help with Shopify Design, Migration, Speed, or Custom tasks?  
email: [email protected]
Try Our Conversion Booster app to get more sales | Connect Our Founder Linkedin

Made4uo-Ribe
Shopify Partner
8238 1977 2425

Hi @Rose1212 

You can try 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 "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:

 

nav.header__inline-menu span:hover {
    color: red !important;
}

 

  • And Save. 
  • Result:
  • Ribe_Dagandara_0-1692950953879.png

     

I hoe it help.

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.

PageFly-Richard
Shopify Partner
4661 1068 1725

Hi @Rose1212 

This is Richard from PageFly - Shopify Page Builder App, I’d like to suggest this idea:
Online Store ->Theme ->Edit code
Assets ->Base.css 

.header__active-menu-item:hover {
  color: red !important;
}

Hope you find my answer helpful!
Best regards,
Richard | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.