ButserFarm Posted January 15 Share Posted January 15 (edited) I'm trying to create a calendar view that is colour coded to differentiate between types of event, like in this screenshot. I know CSS will allow me to make all event days the same colour, but I need multiple colours. I've tried cheating by giving the events a header image that's just the colour I'd like them to appear on the calendar, and this sort of works, but I'd ideally like to be able to use a slimline calendar below 600px and I can't figure out how to force the thumbnail to appear on that calendar. Does anyone know either how I can use CSS (and presumably Javascript) to customise date colour on the calendar by event tags, or how I can force an event thumbnail to appear on a slimline calendar? Thanks. Our site is here https://www.butserancientfarm.co.uk/whats-on Edited January 15 by ButserFarm adding site link Link to comment
paul2009 Posted January 15 Share Posted January 15 1 hour ago, ButserFarm said: I'd like them to appear on the calendar Can you direct me to the Calendar Block view? I could only see the Events page. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
ButserFarm Posted January 15 Author Share Posted January 15 1 minute ago, paul2009 said: Can you direct me to the Calendar Block view? I could only see the Events page. I've been testing the calendar block here: https://www.butserancientfarm.co.uk/new-page-4 Link to comment
paul2009 Posted January 15 Share Posted January 15 I checked but Squarespace's Calendar Block is now very old (it hasn't received any love recently) so doesn't have CSS selectors for tags or categories. This means it isn't possible to do this with CSS. It may be possible to achieve it with JavaScript but nothing was immediately obvious as you'll be fighting with Squarespace's own JavaScript, used to create the calendar block. Others may have ideas. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment