After writing a few posts that involve things about games I found myself wanting to add a “spoiler hider” like the kind often found on game-related forums. They’re a very nice little way of hiding things and letting the reader look at them when/if they want to.
So, I made my own plugin and I’m kindly sharing it.
When I have a little more time I’ll write a little guide on how I made it and how to make a simple little WordPress plugin.
Here it is!
Spoiler
This is what the spoiler tag looks like, it still needs a little bit of tweaking, like the ability to change the colours and styles, but it’s fully functional and easy to use.
Let’s Share Some Code
If you just want to use the plugin, I’ll add a downloadable .zip that you can simply upload to WordPress to use.
For those more interested in how it works, here’s the code, also hidden in spoiler tags just to show off another possible use of them.