Simple Expand – Lightweight Read more toggle
·
Adds an [expand] shortcode that wraps content in a native HTML `` toggle. No JavaScript, no settings page, no bloat.
A single shortcode you can drop into any post, page, or text widget to get a click-to-expand “read more” toggle. The output is a native HTML <details> element styled with a small inline stylesheet — nothing else.
The point is the absence of features. There is no settings page, no animation library, no editor block panel with twelve toggles. If you need a read-more on one paragraph in one post, you do not want a plugin that wants to manage your whole site.
Usage:
[expand title="My title"]
The content goes here.
<img src="even-images-can-go-in-here.jpg" />
And wrap up with a closing expand tag.
[/expand]
Supports a custom CSS class via [expand class="my-class"] and works with WordPress oEmbeds and other shortcodes nested inside.
