Jump to content

Watermark for photos in gallery image block

Recommended Posts

Site URL: https://the3dbabyco.squarespace.com/photo-gallery

Hi there, I am using the following code to add an automatic watermark to my gallery images. I cannot get this to work with the gallery grid block (it worked great with the gallery section). Can I get some help adjusting this code for the block? thanks! 

page password: scocreativeclient

Code: 

.sqs-gallery-block-grid {
    position: realtive!important}

.gallery-grid-item-wrapper:after{
    content: " ";
    display: block;
    background-image: url(https://static1.squarespace.com/static/6189804068b54844ea21fc1f/t/622902cc23410f21df68e58b/1646854861070/The-3D-Baby-Co---Round-Pale-Yellow.png)!important;
    background-size: contain;
    position: absolute;
    width: 60px;
    height: 60px;
    right: .5rem;
    bottom: .5rem;
    opacity: .5
}

Link to comment

Use this code for Gallery Block

.gallery-block .slide .margin-wrapper:after {
    content: " ";
    display: block;
    background-image: url(https://static1.squarespace.com/static/6189804068b54844ea21fc1f/t/622902cc23410f21df68e58b/1646854861070/The-3D-Baby-Co---Round-Pale-Yellow.png)!important;
    background-size: contain;
    position: absolute;
    width: 60px;
    height: 60px;
    right: .5rem;
    bottom: .5rem;
    opacity: .5;
}
.margin-wrapper {
    position: relative;
}

 

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.