crafnanthouse Posted March 10 Share Posted March 10 (edited) Hi! We've got four social links on our website - http://www.crafnanthouse.com Using custom code the first three change colour to yellow when you hover over them. We have just added further code to change the WhatsApp icon to the correct one (it was the chain icon before), but the WhatsApp logo is permanently yellow. This is the current code we have to do all of that: [href*="wa.me"] { visibility: hidden; position: relative; } [href*="wa.me"]:before { visibility: visible; content: "\f232"; font-family: FontAwesome; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 35px; /* Adjust the size as needed */ } .sqs-block-button-element:hover { text-decoration: none !important; } .image-button a:hover { text-decoration: none !important; } .sqs-svg-icon--wrapper:hover .sqs-use--icon {fill: hsl(51, 100%, 42%)!important;} Could anyone advise on what to change so all the icons change to yellow when hovering? Thanks!!!! Edited March 10 by crafnanthouse Add hyperlink to website Link to comment
sorca_marian Posted March 10 Share Posted March 10 (edited) Hi, Add this CSS below the existing one .sqs-svg-icon--wrapper::before { color : #fff; } .sqs-svg-icon--wrapper:hover::before { color : #d6b600; } hover.mp4 Edited March 10 by sorca_marian 👨🔧👨💻 Contact me for development and design work - Freelancer Software engineer, Architect, and Designer UI/UX 🙋♂️ Squarespace Custom Web Development & Design 📅 Manage Tasks, Take Notes, and Upload Related Images 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
crafnanthouse Posted March 10 Author Share Posted March 10 Hi! Just tried that - it almost works (thanks!). The only thing is the WhatsApp logo stays white all the time when you hover over the others, rather than light grey. Is there a way to get them all to do the same thing? Link to comment
Solution sorca_marian Posted March 10 Solution Share Posted March 10 Sure .sqs-svg-icon--wrapper::before { color : #fff; } .sqs-svg-icon--wrapper:hover::before { color : #d6b600; } .social-icons-color-white.social-icons-style-regular .sqs-svg-icon--list:hover [href*="wa.me"] { opacity : 0.4; } .social-icons-color-white.social-icons-style-regular .sqs-svg-icon--list [href*="wa.me"]:hover { opacity : 1; } hover 2.mp4 👨🔧👨💻 Contact me for development and design work - Freelancer Software engineer, Architect, and Designer UI/UX 🙋♂️ Squarespace Custom Web Development & Design 📅 Manage Tasks, Take Notes, and Upload Related Images 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
crafnanthouse Posted March 10 Author Share Posted March 10 Amazing!!! Thats worked 🙂 Thank you SO MUCH!!! sorca_marian 1 Link to comment
sorca_marian Posted March 10 Share Posted March 10 😀👍 👨🔧👨💻 Contact me for development and design work - Freelancer Software engineer, Architect, and Designer UI/UX 🙋♂️ Squarespace Custom Web Development & Design 📅 Manage Tasks, Take Notes, and Upload Related Images 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment