Jump to content

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

Recommended Posts

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!


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


BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date format)
💫 Animated Buttons (Referral URL)
🥳 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

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • 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.