Title: Template Part
Published: June 7, 2026
Last modified: October 14, 2026

---

# Template Part

## In this article

 * [Attributes](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#attributes)
 * [Supports](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#supports)
 * [Block Markup](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#block-markup)
 * [Source](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#source)

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

 * **Name:** `core/template-part`
 * **Category:** [theme](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/)
 * **API Version:** [3](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/)
 * **Block Type:** [Dynamic](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/)(
   server-rendered)

## 󠀁[Attributes](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#attributes)󠁿

_Defined via the [`attributes`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/)
property in block.json._

  |  Attribute |  [Type](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#type-validation) |  [Default](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/#default-value) |  Description |  
   |  `slug` |  `string` |  — |  — |  
 |  `theme` |  `string` |  — |  — |  
 |  `tagName` |  `string` |  — |  — |  
 |  `area` |  `string` |  — |  — |

## 󠀁[Supports](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#supports)󠁿

_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/)
property in block.json._

 * [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align):`
   true`
 * [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html):`
   false`
 * [`reusable`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#reusable):`
   false`
 * [`renaming`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#renaming):`
   false`
 * [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity):
    - `clientNavigation`: `true`

## 󠀁[Block Markup](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#block-markup)󠁿

This is a [**dynamic block**](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/).
It is rendered on the server and does not save HTML in post content.

In post content, it is stored as a block comment:

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

## 󠀁[Source](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-template-part/?output_format=md#source)󠁿

 * [block.json](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/template-part/block.json)(
   [reference](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/))
 * [Source directory](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/template-part/)—
   browse the `edit` and `save` source files, `index.php`, and more.

First published

June 7, 2026

Last updated

October 14, 2026

Edit article

[ Improve it on GitHub: Template Part ](https://github.com/WordPress/gutenberg/edit/trunk/packages/block-library/src/template-part/README.md)

[  Previous: Site Title](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-site-title/)

[  Next: Term Count](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-theme/core-block-term-count/)