MillyBanks Posted April 28, 2022 Share Posted April 28, 2022 Site URL: https://www.hornbeamtraining.co.uk/courses#events-calendar Hi, 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
creedon Posted April 30, 2022 Share Posted April 30, 2022 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment