Template Part

Edit the different global regions of your site, like the header, footer, sidebar, or create your own.

This block is available in the latest version of WordPress and does not require the Gutenberg plugin.

Category:

Block variations: Header, footer.


For developers

Block Grammar & Markup

<!-- wp:template-part {"slug":"header","theme":"twentytwenty"} /-->

Block Attributes

Optional. Type: Object.

Attributes provide the structured data needs of a block. They can exist in different forms when they are serialized, but they are declared together under a common interface.

Documentation

{
  "slug": {
    "type": "string"
  },
  "theme": {
    "type": "string"
  },
  "tagName": {
    "type": "string"
  },
  "area": {
    "type": "string"
  }
}

Block Supports

Optional. Type: Object.

A set of options that enables or disables block controls in the editor, for example gradient colors or padding.

Documentation

{
  "align": true,
  "html": false,
  "reusable": false
}