显示此站点的名称。更新该区块后,所有使用该区块的地方都会应用更改。这也会出现在浏览器标题栏和搜索结果中。

  • Name: core/site-title
  • Category: theme
  • API Version: 3
  • Block Type: Dynamic (server-rendered)

Attributes

Defined via the attributes property in block.json.

AttributeTypeDefaultDescription
levelnumber1—
levelOptionsarray[0,1,2,3,4,5,6]—
isLinkbooleantrueRole: content
linkTargetstring"_self"Role: content

Supports

Defined via the supports property in block.json.

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