WordPress Spoiler Alert Plugins – Keep Secrets with Spoiler Code
Do you like secrets?
Perhaps you like to keep vital information away from unsuspecting eyes, facts that might spoil a book or film?
If so, your WordPress blog is probably not a safe place to visit if you’re going to tell the world about your thoughts and feelings on the aforementioned book, film, or even comic or TV show – not without the benefit of some useful code that enables you to secrete spoilers behind a warning.
While there are many plugins that will provide you with spoiler tag harmony to protect the innocent eyes of casual readers on your site, you don’t even need to use these – there are plenty of ways in which you can protect plot revelations and other sensitive facts.
Change the Font Color in WordPress
The most basic way in which you can protect spoilers from your readers is to change the font colour in WordPress. You can do this in the edit post screen. Select the text concerned and then click the Select text color button, choosing a suitable tone to blend the spoiler into you’re your website’s background colour.
Otherwise, you could simply switch to HTML view and add the following:
<span style="color: #ffffff;">spoiler here</span>
Whichever method you choose, don’t forget to warn your readers that they will need to “select” the text to read it!
A Spoiler Plugin for WordPress
The alternative to this is to find a plugin that deals specifically with spoilers. This shouldn’t be too difficult, as there seems to be plugins that are designed for pretty much every purpose these days.
If you’re looking for the best example of such a plugin, you should take a few moments to check out Spoiler Block, available from the WordPress plugins page. Easily implemented, this plugin adds a button to the post entry screen, enabling you to select text and set it as a spoiler.
As a result, spoilers are obscured with the text “Spoiler”, requiring the reader to click the warning in order to see the hidden information. While there are other solutions (such as Easy Spoiler and WP UI – Tabs, Accordions, Sliders) Spoiler Block is arguably the best option due to its single click nature. There is no messing with configuration, no shortcodes, just a simple button to create a spoiler.
One of the most effective tools you can employ for hiding test in a spoiler “envelope” ready to be unlocked by a reader is to use a shortcode plugin. Several of these are available – we took a look at some of the best recently and you’ll be pleased to know that once they’re installed, these shortcodes are really easy to use.
Typically they use single statements (sometimes with conditions) wrapped in square brackets. So for example a spoiler might be setup as follows:
Lots of information that no one should see unprepared.
As you can see, shortcodes are easy to use, so if you’re unsure about the other solutions, this should be your first stop. Note that if you use a shortcode plugin, some configuration of the way in which the spoiler is presented might also be possible.
All of this is going to mean nothing if you blog about finance, parenting, micro-electronics or animals. But so many blogs these days are about popular culture, it’s easy to find yourself writing about things that your readers might not yet be prepared for.
These methods can help to protect your readers from details they don’t yet need to know while the main thrust of your blog retains all meaning.
Do you protect your readers from spoilers? Which solution do you use?