bricks-templates

Create and update Bricks header, footer, content, and section templates programmatically.

14|1|Updated Mar 30, 2026
One-click install
npx skills add https://github.com/wpgaurav/WordPress-skills --skill bricks-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bricks-templates
Source: https://github.com/wpgaurav/WordPress-skills/tree/main/skills/wordpress/bricks/bricks-templates
Command: npx skills add https://github.com/wpgaurav/WordPress-skills --skill bricks-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bricks template management in WordPress can be verbose and error-prone when creating multiple template types programmatically. This skill provides a concise, repeatable approach to generate and manage Bricks templates in code.

Core Features & Use Cases

  • Create and update Bricks templates programmatically (header, footer, content, and section) with a defined element hierarchy.
  • Map templates to specific page types and rendering conditions using Bricks meta keys and settings.
  • Reuse templates across sites and automate consistent branding and layout across a WordPress installation.

Quick Start

Create a Bricks header template by supplying a basic elements array and invoking the programmatic template creator.

Frequently Asked Questions about bricks-templates

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create Bricks templates programmatically in WordPress?

Creating Bricks templates programmatically involves supplying a basic elements array and invoking a template creator API to generate headers, footers, and sections. This approach enforces element structure and Bricks meta keys for consistent layout management across your WordPress installation.

Can I reuse Bricks header and footer templates across multiple WordPress sites?

Reusing Bricks header and footer templates across multiple sites is supported by defining a consistent programmatic API for template management. This enables automated branding and layout consistency by mapping templates to specific page types and rendering conditions using Bricks meta settings.

What is the best way to manage Bricks template rendering conditions?

Managing Bricks template rendering conditions is handled by mapping templates to specific page types using Bricks meta keys and settings. This programmatic method ensures templates are correctly applied to their intended page areas without manual configuration errors.

Why does programmatic Bricks template creation fail with incorrect element structure?

Programmatic Bricks template creation requires a strictly defined element hierarchy to function correctly. Failures occur when the supplied elements array does not enforce the expected element structure or Bricks meta keys, leading to verbose and error-prone template management.

Do I need Bricks meta keys to update WordPress content templates programmatically?

Bricks meta keys are required to update WordPress content templates programmatically. They enforce element structure and map templates to specific page types and rendering conditions, ensuring a concise and repeatable approach to code-based template management.

What sections can I automate with a Bricks template management API?

With a Bricks template management API, you can automate the creation and updating of header, footer, content, and section templates. This API enforces a consistent element hierarchy, enabling repeatable template generation across multiple WordPress sites.