显示此站点的名称。更新该区块后,所有使用该区块的地方都会应用更改。这也会出现在浏览器标题栏和搜索结果中。
Attributes
Defined via the attributes property in block.json.
| Attribute | Type | Default | Description |
|---|---|---|---|
level | number | 1 | — |
levelOptions | array | [0,1,2,3,4,5,6] | — |
isLink | boolean | true | Role: content |
linkTarget | string | "_self" | Role: content |
Supports
Defined via the supports property in block.json.
anchor:truealign:"wide","full"html:falsebackground:backgroundImage:truebackgroundSize:truegradient:true
color:dimensions:minHeight:trueminWidth:true
spacing:padding:truemargin:true
typography:fontSize:truelineHeight:truetextAlign:truefitText:true
interactivity:clientNavigation:true
shadow:true
Block Markup
This is a dynamic block. It is rendered on the server and does not save HTML in post content.
In post content, it is stored as a block comment:
<!-- wp:site-title /-->
Source
- block.json (reference)
- Source directory — browse the
editandsavesource files,index.php, and more.