Jump to content

Adding an image to appear on portfolio hover

Recommended Posts

  • Replies 5
  • Views 1.1k
  • Created
  • Last Reply

Hello,

Could you please add a private password to your page, or website, and share that with us. Currently, we are blocked from entering the site. Once you've done that we can better assist you. Also, are you looking to add a single image to overlay all photos or a different overlay for each portfolio item?

 

-Dan

Link to comment
12 hours ago, mcmullian said:

Thanks for letting me know! Password: test

Would actually love to have something different for each portfolio item as long as the code isn't too insane!

Hi. Same image for all projects or different images?

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
On 6/20/2021 at 12:00 AM, mcmullian said:

Would love to do a different image for each project!

 

Add to Design > Custom CSS. Repeat for other projects

/* Project 1 */
a.grid-item[href="/work/the-ruse-lmgj6"] {
    background-size: cover;
    background-image: url(https://cdn.pixabay.com/photo/2015/07/09/23/09/cadaques-838724__340.jpg);
}
a.grid-item[href="/work/the-ruse-lmgj6"]:hover img {
    visibility: hidden;
}
/* project 2 */
a.grid-item[href="/work/american-portraiture-lzgfe"] {
    background-size: cover;
    background-image: url(https://cdn.pixabay.com/photo/2021/06/15/13/20/banded-demoiselle-6338620__340.jpg);
}
a.grid-item[href="/work/american-portraiture-lzgfe"]:hover img {
    visibility: hidden;
}

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.