Guest Posted March 30, 2020 Share Posted March 30, 2020 Site URL: https://www.difeidesign.com/ Hi there! 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, but I want the actual links on the home page to change. I'm using Squarespace 7.1 and the Hawley template, if that helps. My site is https://www.difeidesign.com/ Thanks a bunch in advance! Link to comment
tuanphan Posted March 30, 2020 Share Posted March 30, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Guest Posted March 31, 2020 Share Posted March 31, 2020 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! Link to comment
tuanphan Posted March 31, 2020 Share Posted March 31, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Guest Posted March 31, 2020 Share Posted March 31, 2020 It almost worked! However, the links are permanently white, instead of turning from black to white when I hover over them. Link to comment
tuanphan Posted April 1, 2020 Share Posted April 1, 2020 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 Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Guest Posted April 1, 2020 Share Posted April 1, 2020 12 hours ago, tuanphan said: Did you insert both code? or only one? i inserted both codes. Here's a screenshot. Link to comment
M_H3 Posted April 28, 2020 Share Posted April 28, 2020 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.