Jump to content

Product Image - Adding image swap on rollover

Go to solution Solved by tuanphan,

Recommended Posts

  • Solution
Posted

Only some templates support this hover feature. With other templates, you will need to set code manually on each product.

You can use this code for first 3 products, repeat similar for other products

a#thumb-kobbie-mainoo-manchester-united-fa-cup-winners-2024-poster:hover img {
    content: url(https://cdn.pixabay.com/photo/2016/10/16/07/29/the-eiffel-tower-1744574_1280.jpg);
}
a#thumb-daisy:hover img {
    content: url(https://cdn.pixabay.com/photo/2024/07/13/07/40/cars-8891625_1280.jpg);
}
a#thumb-war-on-robots:hover img {
    content: url(https://cdn.pixabay.com/photo/2015/08/26/15/31/girl-908614_1280.jpg);
}

 

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!)

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.