Insert poetry. Use special spacing formats. Or quote song lyrics.
- Name:
core/verse - Category: text
- API Version: 3
- Block Type: Static (saved in post content)
- Keywords:
poetry,poem,verse,stanza,song,lyrics
Attributes
Defined via the attributes property in block.json.
| Attribute | Type | Default | Description |
|---|---|---|---|
content |
rich-text |
— | Source: rich-text. Selector: pre. Role: content |
Supports
Defined via the supports property in block.json.
anchor:truebackground:backgroundImage:truebackgroundSize:truegradient:true
color:dimensions:minHeight:true
typography:fontSize:truelineHeight:truetextAlign:true
spacing:margin:truepadding:true
interactivity:clientNavigation:true
Block Markup
This is a static block. The markup is saved directly in the post content.
<!-- wp:core/verse -->
<pre class="wp-block-verse">A <em>verse</em>…<br>And more!</pre>
<!-- /wp:core/verse -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.