joelledunkley Posted September 5 Share Posted September 5 Hello, I'm currently working on a website for my client. She would like the background color to change upon hovering over a gallery. Here's the page I'd like to apply the customization to: https://www.lovelyinlace.me/choose-your-studio-v2 It will be within the homepage index as she's on Squarespace 7.0. Is there a custom CSS code that can change the background color of the page section upon hovering over the second gallery? Really appreciate any help with this, Thanks! Link to comment
tuanphan Posted September 7 Share Posted September 7 You mean hover gallery 2 (red arrow) > Change page white background? 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
joelledunkley Posted September 7 Author Share Posted September 7 Hi @tuanphan Yes! When you hover over Gallery 2 (the one with the red arrow), I'd like the white page background to turn to black. Is there a custom code that can achieve this? The client is on Squarespace 7.0 on a Brine family template. Link to comment
joelledunkley Posted September 12 Author Share Posted September 12 Hey @tuanphan would you be able to look at this, I believe the only way to achieve this is custom code? Link to comment
joelledunkley Posted September 12 Author Share Posted September 12 (edited) @creedon @Ziggy @Sarah_SQSP @paul2009 🙏 Edited September 12 by joelledunkley Link to comment
joelledunkley Posted September 12 Author Share Posted September 12 If anyone else on the forum knows a solution to this I'd greatly appreciate it ❤️ Link to comment
creedon Posted September 12 Share Posted September 12 The issue here is, I think, if I understand the desired effect, is that there is no way with CSS alone to hover over the gallery and effect the styling of a ancestor element. In this case the element that has the background color. You would need JavaScript to detect the hover over gallery and then set a class higher up in the chain to get the effect. This would require the business plan or above and of course the JavaScript code to be written. I know of no code that does this. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
joelledunkley Posted September 15 Author Share Posted September 15 Hi @creedon Thank you for your response, I appreciate it. 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