Jump to content

Assign different colors to image collage background colors?

Recommended Posts

Site URL: https://carrot-bronze-bld8.squarespace.com/produce

Hello,

I'm wondering if there is a way to assign different colors to image collage background colors when there are multiple on a page. I.e. I'd like each of these tan boxes to be a different color as follows:

1st - dk green #496738
2nd - light green #79973D
3rd - light blue #90B0B6
4th - cream #FBF7EB

This URL for this screenshot is https://carrot-bronze-bld8.squarespace.com/produce

Thank you!

Screen Shot 2021-10-06 at 10.11.29 PM.png

Link to comment

Yes, you can do this with some CSS. If you know how to use CSS to change all of them, you can simply prefix this with the YUI Block ID of the particular image block.

For example: #block-yui_3_17_2_1_1620539343869_16876 (and a space) would be added before the CSS selectors that you planned to use, such as .sqs-block-image .design-layout-collage .image-card

Does that help, or do you need more specific help?

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

@mackenzie Add to Design > Custom CSS

/* Collage 1 */
div#block-18f998425215bab189d5 .image-card {
    background-color: #496738;
}
/* Colalge 2 */
div#block-yui_3_17_2_1_1620539343869_16876 .image-card {
    background-color: #79973D;
}
/* Collage 3 */
div#block-yui_3_17_2_1_1620515148270_59562 .image-card {
    background-color: #FBF7EB;
}

Use this tool to find block id in future cases: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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.