Heading

In this article


Introduce new sections and organize content to help visitors (and search engines) understand the structure of your content.

  • Name: core/heading
  • Category: text
  • API Version: 3
  • Block Type: Hybrid (static save + server enhancements)
  • Keywords: title, subtitle

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
content rich-text Source: rich-text. Selector: h1,h2,h3,h4,h5,h6. Role: content
level number 2
levelOptions array
placeholder string

Supports

Defined via the supports property in block.json.

Block Markup

This is a hybrid block. It saves static markup that the server may enhance during rendering.

<!-- wp:heading {"level":2} -->
<!-- Content... -->
<!-- /wp:heading -->

Source