Jump to content

Calendar block colour/thumbnail customisation

Recommended Posts

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

example.png

Edited by ButserFarm
adding site link
Link to comment
  • Replies 3
  • Views 1.1k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

Link to comment

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.

About me: I'm Paul, a SQSP user for over 18 yrs and a Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL, providing 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 below. Buying a coffee is optional.

Book paid help with domains: Connect a GoDaddy domain. Connect a Squarespace Domain. Domain assistance

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.