The ChallengeHow do we create a site that dynamically and automatically responds to the time at which it is being viewed?
The SolutionOn the camp’s previous site, I baked similar functionality into the PHP code of the site. However, now that we opted to utilize WordPress and allow camp staff broader management of the site, I wanted to land on a solution that would be more readily accessible and customizable. Hence, conditional CSS. The Seasonal CSS plugin for WordPress allows users with the switch_themes capability to manage CSS rules which can be applied to the site during a specific range of time and optionally repeated on an annual basis. Pretty simple and straightforward. At the moment, it is somewhat difficult to get a quick glimpse at what rules exist and which are currently active. I hope to improve that down the road. I’d be curious to see how you end up using Seasonal CSS. Send me anything you might cook up. I’d love to see and share.
Type On & Tell Your Story.
Add your email below and join the journey of a digital creative.