Guest csuarSquare Posted January 7, 2020 Share Posted January 7, 2020 I was looking to implement a hover style to my Crew Page via the actual page's advanced css location. I'm looking for something like: https://www.conducthq.com/about/ I'm aware of this thread with the script for the effect above: https://forum.squarespace.com/topic/94666-image-hover-change/ But, I am unaware of how to actually apply it to a specific page, not in the overall custom CSS. Thank you! (Image attached shows how the script injects itself into the header on my test site...) Link to comment
Vigasan Posted January 8, 2020 Share Posted January 8, 2020 The code in that post is meant to be used in a CODE block. So upload the images you want to a gallery in the NOT LINKED section, then right click each image to get the URL for it, then use that URL in the code. <img src="COVER_IMAGE" onmouseover="this.src='OTHER_IMAGE'" onmouseout="this.src='COVER_IMAGE'"> The above code goes into a CODE block on a page. If an answer I provide helps you, please mark it as the answer so others can easily access it as well. I'm a Squarespace Authorized Trainer, Squarespace Expert, and Circle Member and I've been helping my clients as well as those here in the forum and in various Squarespace groups with custom coding and support for Squarespace websites. I would love to help you in any way I can. Squarespace Plugins | Book Live Help | Squarespace Video Tutorials | Buy Me a Coffee Link to comment
Guest csuarSquare Posted January 9, 2020 Share Posted January 9, 2020 On 1/7/2020 at 9:30 PM, Vigasan said: The code in that post is meant to be used in a CODE block. So upload the images you want to a gallery in the NOT LINKED section, then right click each image to get the URL for it, then use that URL in the code. <img src="COVER_IMAGE" onmouseover="this.src='OTHER_IMAGE'" onmouseout="this.src='COVER_IMAGE'"> The above code goes into a CODE block on a page. Ahh, my apologies. Thank you! It works perfectly fine! Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.