edustin1978 Posted January 6, 2020 Share Posted January 6, 2020 I'm using the collage block throughout my portfolio site and I'd like it to appear in different colors on different pages. For example, if you visit: https://www.johnpattersonportfolio.com/#/zulily/, you'll see purple - which works with the presentation. However, if you go to https://www.johnpattersonportfolio.com/#/wizardsofthecoast1/, you'll see the purple again. I would like it to be a light blue instead. I want to customize the color of the collage for every one of the 11 pages I have. Please help! Thanks! Dustin Link to comment
tuanphan Posted January 6, 2020 Share Posted January 6, 2020 add to Home > Design > Custom CSS /* Page 1 */ div#block-yui_3_17_2_1_1578074906228_52324 .image-card { background: purple; } /* Page 2 */ div#block-yui_3_17_2_1_1578084749729_31301 .image-card { background: blue; } You need to inspect html structure to find Block ID of 11 Pages. See how to find block iD 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
edustin1978 Posted January 7, 2020 Author Share Posted January 7, 2020 It works! Thank you so much, Tuanphan! Link to comment
ayuye Posted March 20, 2020 Share Posted March 20, 2020 Hi tuanphan, I'm quite new to squarespace, and for some reason, when I add the above, it doesn't work for me. Would you be able to maybe help me as I feel I'm being dumb? Link to comment
tuanphan Posted March 20, 2020 Share Posted March 20, 2020 4 hours ago, ayuye said: Hi tuanphan, I'm quite new to squarespace, and for some reason, when I add the above, it doesn't work for me. Would you be able to maybe help me as I feel I'm being dumb? Each block has different ID. So above code won't work on your site. Can you share link collapge block on your site? 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
Recyclerevolution Posted August 6, 2020 Share Posted August 6, 2020 On 3/20/2020 at 5:01 PM, tuanphan said: Each block has different ID. So above code won't work on your site. Can you share link collapge block on your site? Hello! I am also trying to change the background color of the text block on my collage image, but I cant get the code to work for me. I know what the block ID is for my images. Here is a link to the page where I'm trying to do this and this is the code that I'm currently using: div#block-yui_3_17_2_1_1596642894060_96354 .image-card { color: #41c5ec; } Any help would be great! Thanks! Link to comment
tuanphan Posted August 7, 2020 Share Posted August 7, 2020 22 hours ago, Recyclerevolution said: Hello! I am also trying to change the background color of the text block on my collage image, but I cant get the code to work for me. I know what the block ID is for my images. Here is a link to the page where I'm trying to do this and this is the code that I'm currently using: div#block-yui_3_17_2_1_1596642894060_96354 .image-card { color: #41c5ec; } Any help would be great! Thanks! use background, not color attribute background: #41c5ec; 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
Guest Posted September 21, 2020 Share Posted September 21, 2020 @tuanphan Thank you so much for helping me on this. Sorry but could you help me out on how to change the colour of the font used on the image collage? Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.