francescalo Posted November 5, 2020 Posted November 5, 2020 Site URL: http://www.involuntaryicon.com/accessories Hi! I need to change the opacity of the white background rectangle in the image block collage to 50%. Can someone help me with a CSS? http://www.involuntaryicon.com/accessories Thank you Francesca
Beyondspace Posted November 6, 2020 Posted November 6, 2020 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; } 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
francescalo Posted November 6, 2020 Author Posted November 6, 2020 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
Beyondspace Posted November 6, 2020 Posted November 6, 2020 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 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
francescalo Posted November 6, 2020 Author Posted November 6, 2020 it gives me this error error evaluating function `rgb`: color functions take numbers as parameters
Beyondspace Posted November 6, 2020 Posted November 6, 2020 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
francescalo Posted November 6, 2020 Author Posted November 6, 2020 just to be cure @bangank36, where I have to copy the injection code?
Beyondspace Posted November 6, 2020 Posted November 6, 2020 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
francescalo Posted November 6, 2020 Author Posted November 6, 2020 Just did it... unfortunately it is not working ;-(
Beyondspace Posted November 6, 2020 Posted November 6, 2020 2 minutes ago, francescalo said: Just did it... unfortunately it is not working ;-( If you invite me as collaborator I can have a look, bangank36@gmail.com 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
francescalo Posted January 19, 2021 Author Posted January 19, 2021 Hi Bangank26! sorry for my late reply, I wish to thank you for your useful help! It works now!
lyoder Posted March 5, 2021 Posted March 5, 2021 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
Beyondspace Posted March 5, 2021 Posted March 5, 2021 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
lyoder Posted March 5, 2021 Posted March 5, 2021 hey im still building it, and havent published it yet, can you view it another way?
creedon Posted March 5, 2021 Posted March 5, 2021 @lyoder Have you tried doing is through the SS interface? 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.
lyoder Posted March 5, 2021 Posted March 5, 2021 creedon, thank you so much! i feel dumb because that was so easy. haha
creedon Posted March 5, 2021 Posted March 5, 2021 @lyoder No worries! I've been doing this stuff for awhile and sometimes I think CSS is the answer and then I remember that there is an SS way to do it! 😀 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.