Inline Spoilers
Inline Spoilers
Description
The plugin allows to create content spoilers with Guttenberg block or simple shortcode.
[spoiler title="Expand Me"]Spoiler content[/spoiler]
Installation
- Install via WordPress Dashboard or upload
inline-spoiler.zip; - Activate the plugin through the ‘Plugins’ menu in WordPress;
- Use Guttenberg block or shortcode in your content;
Faq
Just override classes defined in build/style-index.css with your theme styles.
Reviews
Отличный плагин!
By George (giorgos93) on February 17, 2025
Это лучший Вордпресс-плагин для создания спойлеров! Разработчик прислушивается к идеям и пожеланиям, и внедряет их. А благодаря добавлению функции: «спойлеры внутри спойлеров» стало вообще отлично!
Перестали работать ссылки
By alexeyspavlov on February 16, 2025
После обновления перестали работать ссылки внутри спойлера. До этого всё было прекрасно. Исправьте, пожалуйста, поскольку аналогов у Вашего плагина пока пока нет.
super
By Kamolov Mansurjon (mansurjon) on February 17, 2024
Maqolalarda ishlatish uchun juda qulay
Doesn't do what the name says
By snowball91 on April 18, 2022
goood
By dfmcvn on January 6, 2020
Good but 2 minor problems
By reizla on October 19, 2019
Great plugin
By Frank Spade (spade) on March 10, 2019
instead and everything is fine.
Easy and right spoiler plugin
By fuvoman on December 24, 2017
good plugin
By Budun on September 3, 2016
good plugin
cool!
By Myslovo on September 3, 2016
I like the way it does:)
Changelog
2.1.0
- Fixed interaction with links & other interactive elements inside the spoiler
- Fixed styling for the spoiler made with the shortcode, when there is no spoiler block
EXPERIMENTAL
- Provide support for dynamic shortcodes
[spoiler-{variable}](e.g.[spoiler-alpha],[spoiler-beta], etc.)
Set
IS_DYNAMIC_SHORTCODEtotrueinwp-config.phpto enable the feature:define('IS_DYNAMIC_SHORTCODE', true);
Usage example:
[spoiler-alpha title="Parent"]
[spoiler-beta title="The First Child"]
Hello World!
[spoiler-gamma title="Grand Child"]
I was born!
[/spoiler-gamma]
[/spoiler-beta]
[spoiler-beta title="The Second Child"]
Goodbye World!
[/spoiler-beta]
[/spoiler-alpha]
2.0.0
- Change spoiler HTML semantic (from
divtodetails&summary)- All blocks created with the previous version of Guttenberg block will be the same as before, until you edit them
- Allow spoilers inside spoilers (as well as any other Guttengerg blocks allowed in post)
WARNING
* Minimal required WordPress version is 6.6 (for JSX support, JSX in WordPress 6.6)
* The plugin is not fully tested with PHP versions lower than 8.1 due to the lack of available official docker images

![Spoiler shortcode <code>[spoiler][/spoiler]</code>](https://ps.w.org/inline-spoilers/assets/screenshot-2.png?rev=2073199)

