Jump to content

How to change the color of hyperlinks when hovering, but not the color of the text within buttons?

Recommended Posts

  • Replies 4
  • Views 802
  • Created
  • Last Reply
13 hours ago, lenouch said:

Site URL: https://www.theneuroticnotebook.com/

I used this code to change the color of hyperlinks when hovering.

  a:hover {

    color: red !important;

}

It works great, but I don't wan the color of the text within the (red) buttons to turn red.

Thank you for your help!

 Lena

You mean only want the underline turn read instead of the whole text?

image.png.ae749069fa32b9198db67d8e0418388e.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

 

Thank you,  the issue is not about the header. There are links inside the pages (the Instagram on my page or the name of my publisher on the About page) I would like the text to turn red when hovering & selecting.

This worked with the code

  a:hover {

    color: red !important;

}

But I don't want the text inside the red buttons  "indiebound", " Barnes& Noble" "Amazon" on the Home page and on the Get me! page to turn red. Thank you for your help!

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.