Jump to content

Change calendar block based on event title

Recommended Posts

Posted

I have created a calendar and have changed the background color of all of my events to orange. Now, I would like to leave all of my events orange unless the title is "Available". For "Available" dates, I'd like the background color to be blue while all other events remain orange. 

Is this possible?

Thank you!

Calendar.JPG

  • Replies 5
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

Posted

Here is my existing custom CSS:

.yui3-squarespacecalendar-content
{background: rgba(96, 96, 96,.3)}


.yui3-calendar-day.today {background: rgba(96, 96, 96,.7)!important; border-radius: 50%}

.yui3-calendar-day.has-event {background: rgba(235, 154, 73, .5)!important;
}

Posted

@JenGlenn876 Ah, bummer I was hoping the calendar might included classes indicating the categories on the divs that you could target, but it doesn't look like this template does that... you might be able to write some custom javascript to get the categories to show up as div classes for this, but that's out of my area of expertise, unfortunately... someone else might have a more helpful suggestion, sorry!

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.