Jump to content

Exclude a block from text link hover effects

Go to solution Solved by tuanphan,

Recommended Posts

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

Password: help



Recently I applied the following code to change the color of text links on my site on hover.

#page a:hover {
    background-image: linear-gradient(to right,currentColor 100%,currentColor 0);
    color: grey;

This works perfectly, changing my links to this appearance on hover:

My problem is that this also applies itself to my portfolio-hover-fixed block, but as a background color.


I need a way to exclude the portfolio block from the code mentioned above. In other words, I want that code to apply to everything in my site, except this portfolio fixed hover section.

Any replies are very much appreciated! 🤝

url: https://www.josegallegosnieto.com/
password: help

Edited by JoseG
Link to comment
  • Solution

Hi. Add this to Design > Custom CSS

a.portfolio-hover-item {
    background-image: none !important;


Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.