Preview
PHP
Block Pattern Header
The standard way to register patterns in Block Themes. Fill in the metadata, categorize it, and paste your Block HTML.
Pattern Details
Discovery
Suggests this pattern when transforming these blocks.
View Settings
Patterns
AllHeadersButtons
Hero with CTA
1200px
How Patterns Work
Patterns are simply PHP files containing HTML comments with metadata. They live in your theme's /patterns/ folder. WordPress automatically registers any file found in that folder.
Workflow Tip
- Build your layout in the WordPress Block Editor.
- Select the parent block (e.g., Group) and click "Copy".
- Paste the HTML code below the PHP header generated above.
- Save the file as
my-pattern.phpin your theme'spatternsdirectory.