20+
August 7, 2014
May 8, 2014
This plugin adds the shortcode [spoiler] to WordPress. Any content
wrapped inside this shortcode is blurred out. It can be revealed by
clicking on the blurred content.
The shortcode takes a mode parameter, which defaults to block. This
wraps your content inside a div. To add spoilers that are inside to your
text use the mode inline.
Eg:- Some [spoiler mode=’inline’]super secret stuff[/spoiler] here!
The Partial and Max blur options control the amount of the blur effect
applied. A value of 0 applies no blur, 20 applies a very large blur
effect, etc.
The Custom option allows you to override the manner in which to hide the
spoilers. This is useful to tune the effect to your site’s theme.
The plugin checks for a custom.css in your current
theme’s directory at {current_theme}/wp-spoiler-alert/custom.css.
If this CSS file is present it will be added to the page automatically.
For eg:- the CSS below makes all spoilers into red blocks.
.spoiler-hidden {
color: red;
background: red;
}
.spoiler-hidden:hover {
color: white;
background: white;
outline: 1px solid red;
}
.spoiler-hidden img {
opacity: 0;
}
.spoiler-visible {
color: inherit;
background: inherit;
outline: none;
}
Yes, see the customization section under Installation.
| Version | Download | Type |
|---|---|---|
| 0.8.3 | Download | Stable |
| 0.8.2 | Download | Stable |
| 0.8.1 | Download | Stable |
| 0.8.0 | Download | Stable |
| 0.7.0 | Download | Stable |
| 0.5.2 | Download | Stable |
| 0.5.1 | Download | Stable |
| 0.4.0 | Download | Stable |
| 0.3.0 | Download | Stable |
| 0.2.4 | Download | Stable |
| 0.2.3 | Download | Stable |
| 0.2.2 | Download | Stable |
| 0.2.1 | Download | Stable |
| 0.2.0 | Download | Stable |
| 0.1.2 | Download | Stable |
| Development | Download | Trunk |