Jump to content

Hawley Template - Want Links for Works to Change Colour

Recommended Posts

  • Replies 7
  • Created
  • Last Reply

I want to get the links on my home page to change from black to white when you hover over them. I want the navigation to stay the same colour

What do you mean?

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

Sorry for any confusion! I've attached a few screenshots to help illustrate what I'm trying to ask.

In the first screenshot, my mouse is not touching any of the links. When this happens, I want the link to be black.

In the second screenshot, my mouse is hovering over one of the links. When this happens, I want the link to turn white.

Hopefully this helps!

Screen Shot 2020-03-30 at 6.15.19 PM.png

Screen Shot 2020-03-30 at 6.15.27 PM.png

Link to comment

Add to Home > Design > Custom CSS

[data-active="false"] span.portfolio-hover-item-content {
    color: black;
}
[data-active="true"] span.portfolio-hover-item-content {
    color: white;
}

 

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
13 hours ago, enochliu said:

It almost worked! However, the links are permanently white, instead of turning from black to white when I hover over them.

 

 

Did you insert both code? or only one?

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
  • 4 weeks later...

enochliu, the code tuanphan gave you is correct but switch it around 

Quote


[data-active="true"] span.portfolio-hover-item-content {
    color: white;
}

[data-active="false"] span.portfolio-hover-item-content { 
    color: black; 
}

 

I was trying to do the same thing. thanks tuanphan!

edit: it's still not perfect though. the menu stays white by default until you hover over the items for the first time, then they turn black with white on hover

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.