astn_mrtn Posted November 18, 2022 Share Posted November 18, 2022 (edited) I'm trying to sort out the CSS that will allow me to change the overlay color of individual images. On my home page I'd like each of project to have a different color when you hover over it. Currently the overlay is white for all images. I imagine it's a simple piece of code, but I haven't been able to figure this one out. Thanks for any help! Link to my site below. https://www.astnmrtn.com/ Edited November 18, 2022 by astn_mrtn Link to comment
Solution Beyondspace Posted November 19, 2022 Solution Share Posted November 19, 2022 6 hours ago, astn_mrtn said: I'm trying to sort out the CSS that will allow me to change the overlay color of individual images. On my home page I'd like each of project to have a different color when you hover over it. Currently the overlay is white for all images. I imagine it's a simple piece of code, but I haven't been able to figure this one out. Thanks for any help! Link to my site below. https://www.astnmrtn.com/ Try adding to Home > Design > Custom Css section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(1) .portfolio-overlay { background-color: red; } section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(2) .portfolio-overlay { background-color: blue; } Here is the code for setting overlay color for the first and the second item Support me by pressing 👍 or marking as solution if this useful for you tuanphan and astn_mrtn 2 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
Beyondspace Posted November 19, 2022 Share Posted November 19, 2022 My testing astn_mrtn 1 Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Lightbox Studio pluginIf you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you Link to comment
astn_mrtn Posted November 19, 2022 Author Share Posted November 19, 2022 18 hours ago, Beyondspace said: Try adding to Home > Design > Custom Css section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(1) .portfolio-overlay { background-color: red; } section[data-section-id="6373bc904b5f15018776d1b3"] .portfolio-grid-overlay .grid-item:nth-child(2) .portfolio-overlay { background-color: blue; } Here is the code for setting overlay color for the first and the second item Support me by pressing 👍 or marking as solution if this useful for you Thank you so much! Exactly what I was looking for. I really appreciate it. Beyondspace 1 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