Oddbean new post about | logout
 How sensible / feasible would it be to have a different CSS theme for each year on my blog?

So posts from 2009 have a different look from 2010's posts etc.

I was thinking about how… misleading it is that all my old posts look the same as my modern ones.

Why, yes, this Yak is particularly hairy. Why do you ask?

#WordPress #CSS #Blogging 
 @2fd7551e gradually desaturate colours and introduce some grainy artifacts the older the post is... 
 @2fd7551e Maybe just write a data attribute into the page & change the colours/fonts/spacing, so you can keep some of the spirit of past designs without a big maintenance burden 
 @2fd7551e you could maintain a separate theme for each year and then use something like https://wordpress.org/plugins/jonradio-multiple-themes/ to switch between them depending on the post. It’s a bit more work maintaining themes, but maybe simpler overall than playing whack-a-mole trying to get one theme to work with multiple stylesheets? 
 @2fd7551e wouldn't be difficult code-wise, simply spit out the year of the post as a body class and style from there - can also use the same the_time('Y') function to do conditionals if you want to move the content around as well 
 @2fd7551e Maybe consider how https://moriel.tech/?era=today and its different eras look as a bit of an example?

@857ae7ec