Jump to content

Can you grey out a past event (product) on a events calendar?

Recommended Posts

Site URL: https://www.hornbeamtraining.co.uk/courses#events-calendar


My client has events which they sell as products. Primarily these are showcased on the calendar. Is it possible to grey out events that are in the past? (Ideally I don't want to hide past events)

Secondly I wonder if it is possible to hide a product automatically when a date passes? (as these are an event). Although the 'store' page isn't openly showcased it is possible to get to it so want to ensure the messaging is consistent and correct! 

Any ideas on how best to approach this welcomed! 🙂 


Link to comment
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please see Calendar Event Block Event Past Class Add.

Then you could add some CSS like the following.

.yui3-squarespacecalendar .yui3-calendar-day.twc-is-past {

  background-color : red;

What CSS you create is up to you. What my code does is give you a class you can target to determine if an event is past or not, which SS doesn't give you by default, as you may have discovered. 🙂

It seems you may have tried to manipulate events with CSS so you may need to remove or change those rulesets.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

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.