Jump to content

Squarespace 7.1 CSS to customize opacity in image block collage

Recommended Posts

  • Replies 16
  • Views 3.5k
  • Created
  • Last Reply
Posted

You can use any color picker to select semi-transparent color to get it hex code and add this snippet to custom css

 

.sqs-block-image .design-layout-collage .image-card {
    background-color: #ffffff8f;
}

image.thumb.png.ddee44f36befdabe635c5ba8937b39ed.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
17 minutes ago, francescalo said:

Hi @bangank36, thank you for your reply.  I add your code on the design CSS, but it doesn't change the opacity of the white rectangle

Screen Shot 2020-11-05 at 10.00.29 PM.png

Try this

.sqs-block-image .design-layout-collage .image-card {
    background-color: rgb(255 255 255 / 56%);
}

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
Just now, francescalo said:

it gives me this error
 
 
error evaluating function `rgb`: color functions take numbers as parameters

That custom css is too bad, sorry. Let's use custom code injection instead

Instruction here

<style>
.sqs-block-image .design-layout-collage .image-card {
    background-color: rgb(255 255 255 / 56%);
}
</style>

 

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted
7 minutes ago, francescalo said:

just to be cure @bangank36, where I have to copy the injection code?

Have you check the instruction?

Go to Settings->Advanced->Code Injection->Header

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

  • 2 months later...
  • 1 month later...
Posted

hey bangank36 i also had the same problem and worked through your steps and could not change the opacity.  I even inspected francescalo's page and still could not figure it out.  any chance you could help me out? thanks 

Posted
7 minutes ago, lyoder said:

hey bangank36 i also had the same problem and worked through your steps and could not change the opacity.  I even inspected francescalo's page and still could not figure it out.  any chance you could help me out? thanks 

What is your site url

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

Posted

@lyoder

Have you tried doing is through the SS interface?

1752066875_ScreenShot2021-03-04at7_06_32PM.png.3eba226805c006adc33b7eb17e57bdda.png

If you click on Card Background and then click in the middle of opacity slider at the very bottom. It's the part with the diagonal lines that is transparent of the left and opaque on the right. That little white circle you see in the middle there is the current setting.

That will change the opacity site wide. If you need to change just one. Then go with the CSS option.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.