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

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

2 Likes

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!

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 tag

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

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;
}

I hoe it help.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

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