WPDev.one
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

  1. Build your layout in the WordPress Block Editor.
  2. Select the parent block (e.g., Group) and click "Copy".
  3. Paste the HTML code below the PHP header generated above.
  4. Save the file as my-pattern.php in your theme's patterns directory.