Jump to content

How add small icon/image inside a product image?

Recommended Posts

  • Replies 3
  • Views 320
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • 2 weeks later...
On 2/18/2022 at 10:54 PM, GreenThingsFarm said:

Hi - yes, that is what I want to do - I've attached an example of how I'd like it to look.

Thanks!

OrgLogo.jpg

Add to Design > Custom CSS

#productList .product .product-image:after {
    content: "";
    background-image: url(https://cdn.pixabay.com/photo/2020/05/08/16/06/dog-5146351__340.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 999;
    width: 50px;
    height: 50px;
}

#productList .product .product-image {
    position: relative;
}

image.thumb.png.097217eb537208cef2a90035ef39fb82.png

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

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.