Displays the name of this site. Update the block, and the changes apply everywhere it’s used. This will also appear in the browser title bar and in search results.
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:falsecolor:spacing:padding:truemargin:true
typography:fontSize:truelineHeight:truetextAlign:true
interactivity:clientNavigation: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
edit.js,save.js,index.php, and more.