| title | WordPress Block Pattern Mapping |
|---|---|
| filename | /guidelines/wordpress-block-patterns.md |
| created | 2026-02-01 |
| modified | 2026-10-22 |
| version | 1.0.0 |
| status | complete |
Version: 1.0.0 Last Updated: February 2026 Purpose: Defines how React components map to WordPress Block Patterns for migration.
Maps to HeroLayout.tsx.
Structure:
core/group(Container, Full Width)core/columns(Two Columns)core/column(Content, Vertical Align Middle)core/heading(H1, Gradient Text)core/paragraph(Lead Text)core/buttonscore/button(Primary Neon)core/button(Secondary Ghost)
core/column(Image/Visual)core/image(Rounded, Shadow-2xl)
Maps to WhySection.tsx.
Structure:
core/group(Container)core/heading(Section Title)core/columns(3 Columns)core/column(Card Style)core/image(Icon)core/heading(H3)core/paragraph
Maps to FaqSection.tsx.
Structure:
core/group(Background: Atomic Black Noise)core/heading(Title)core/details(Repeater)core/summary(Question + Chevron)core/group(Answer Body)
Maps to BlogPreviewSection.tsx.
Structure:
core/query(Inherit query from URL)core/post-template(Grid 3-col)core/group(Card Wrapper)core/post-featured-imagecore/post-titlecore/post-excerptcore/post-date
| React Component | WP Block Class | Notes |
|---|---|---|
btn--neon-primary |
.is-style-neon-primary |
Custom button style |
btn--neon-secondary |
.is-style-neon-secondary |
Ghost button with neon border |
text-hero-h1 |
h1 (default) |
Set via theme.json typography |
card |
.is-style-card |
Applied to Group blocks |
-
Register Patterns: Create PHP files in
patterns/folder of the WP theme containing the block markup. -
Lock Templates: Use full-site editing templates (
templates/index.html) to enforce the layout. -
ACF Blocks: For complex interactive components (like the "Neon vs Atomic Black" toggle or 3D books), wrap the React code in a custom ACF Block or use a Headless approach where WP just serves the JSON data.