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 864
  • Created
  • Last Reply
Posted
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 (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

 

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!

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.