Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

ganohrs-toggle-shortcode

=== Ganohr's Toggle Shortcode ===
Contributors: Ganohr
Tags: Toggle,CSS,AMP
Donate link: http://amzn.asia/gw9HHbg
Requires at least: 4.0
Tested up to: 4.9.6
Requires PHP: 5.0
Stable tag: trunk
License: GPLv2
License URI: http://www.opensource.jp/gpl/gpl.ja.html

You can insert to WordPress that toggle-code for CSS-based.

== Description ==
You can insert to WordPress that toggle-code for CSS-based.
簡単にCSSベースの折りたたみコードをワードプレスへ追加できます。

Usage(使い方):  

[toggle title="title here" (optional)load="open / close" (optional)suffix="(empty) or 1 to 4 or black"]
contents here
[/toggle]


== Screenshots ==
1. Easy to insert CSS-based toggle code.
2. If you wanna insert many toggles, then use "suffix".
3. "suffix" is useful. It because can change the css class.

== Changelog ==
0.0.2 Change "readme.txt"
0.0.1 New Release


== Upgrade Notice ==
Maybe, next version could control how to insert css load (header or enqueue).