Start with the basic building block of all narrative.
- Name:
core/paragraph - Category: text
- API Version: 3
- Block Type: Hybrid (static save + server enhancements)
- Keywords:
text
Attributes
Defined via the attributes property in block.json.
| Attribute | Type | Default | Description |
|---|---|---|---|
content |
rich-text |
— | Source: rich-text. Selector: p. Role: content |
dropCap |
boolean |
false |
— |
placeholder |
string |
— | — |
direction |
string |
— | Enum: ltr, rtl |
Supports
Defined via the supports property in block.json.
align:"wide","full"splitting:trueeditableRoot:trueanchor:trueclassName:falsecolor:spacing:margin:truepadding:true
typography:fontSize:truelineHeight:truetextAlign:truetextColumns:truetextIndent:truefitText:true
interactivity:clientNavigation:true
CSS Selectors
Defined via the selectors property in block.json.
- root:
p - typography:
- textIndent:
.wp-block-paragraph + .wp-block-paragraph
- textIndent:
Block Markup
This is a hybrid block. It saves static markup that the server may enhance during rendering.
<!-- wp:paragraph {"dropCap":false} -->
<!-- Content... -->
<!-- /wp:paragraph -->
Source
- block.json (reference)
- Source directory — browse
edit.js,save.js,index.php, and more.