Pullquote
Give special visual emphasis to a quote from your text.
Attributes
Defined via the attributes property in block.json.
| Attribute | Type | Default | Description |
|---|---|---|---|
value |
rich-text |
— | Source: rich-text. Selector: p. Role: content |
citation |
rich-text |
— | Source: rich-text. Selector: cite. Role: content |
Supports
Defined via the supports property in block.json.
anchor:truealign:"left","right","wide","full"background:backgroundImage:truebackgroundSize:truegradient:true
color:gradients:truebackground:truelink:true
dimensions:minHeight:trueminWidth:true
shadow:truespacing:margin:truepadding:true
typography:fontSize:truelineHeight:truetextAlign:truetextIndent:true
interactivity:clientNavigation:true
Block Markup
This is a static block. The markup is saved directly in the post content.
<!-- wp:core/pullquote -->
<figure class="wp-block-pullquote">
<blockquote>
<p>Testing pullquote block...</p><cite>...with a caption</cite>
</blockquote>
</figure>
<!-- /wp:core/pullquote -->
Source
- block.json (reference)
- Source directory — browse the
editandsavesource files,index.php, and more.
这篇文档对你有帮助吗?
谢谢你的反馈!