Automating WordPress Page Generation with Claude

How I set up Claude in Chrome to build WordPress pages in a logged in admin tab, and the theme.json, Claude Skill and custom template guardrails that keep brand and voice consistent.

If you want Claude to build WordPress pages for you without wrecking your brand, here’s the setup I use.

Most people start by generating copy in a chat window, pasting it into the block editor, and fixing headings, buttons and spacing by hand. That saves time on writing, but you’re still the clipboard. With the Claude in Chrome extension, Claude can work directly in a logged in WP admin tab and build the page itself.

The catch is that an AI with access to /wp-admin will happily invent hex codes, pick random font sizes and write generic marketing copy. Getting real value out of this comes down to three guardrails:

  1. theme.json to lock down colors, type and spacing
  2. Claude Skills to control voice and what Claude is allowed to do
  3. Custom templates for pages that shouldn’t be touched structurally

Basic Setup: Claude in Chrome & WordPress

You don’t need the REST API, webhooks or an MCP server for this. Just Chrome, a paid Claude plan and a staging site.

  1. Install the Claude in Chrome extension and sign in.
  2. Log in to your staging site’s /wp-admin as an Editor or Administrator.
  3. Go to Pages > Add New Page so a blank block editor is open in the active tab.
  4. Open the Claude side panel and give it a prompt.

I’d use a separate Chrome profile that’s only logged in to staging, so Claude can’t see anything else you have open.

Example: Webinar Landing Page

Here’s a simple prompt to test it:

In the active WordPress tab, create a draft landing page for our Winter SEO Audit Webinar. Add a hero with a headline, a two sentence value proposition and a "Reserve Your Spot" button. Below that add a 3 column section on what attendees will learn, then a short FAQ. Save it as a draft, do not publish.

Claude reads the page, fills in the title, inserts blocks (or switches to the Code Editor and pastes block markup directly) and saves the draft. It takes about 30 seconds.

Then you look at it. The button is default blue instead of your brand green, it used H3s where your design uses H2s, and the copy sounds like a startup pitch deck. That’s the problem the rest of this post solves.

Lock Down Styles with theme.json

Don’t try to enforce design rules through prompts ("only use #1A365D for buttons"). Prompts drift. Configuration doesn’t.

If you turn off custom controls in theme.json, WordPress removes those options from the editor entirely, so Claude can’t pick an off brand color because the option doesn’t exist:

{
  "$schema": "https://schemas.wp.org/trunk/theme.json",
  "version": 3,
  "settings": {
    "color": {
      "custom": false,
      "customDuotone": false,
      "customGradient": false,
      "defaultPalette": false,
      "palette": [
        { "slug": "brand-primary", "color": "#0F172A", "name": "Brand Navy" },
        { "slug": "brand-accent", "color": "#2563EB", "name": "Action Blue" },
        { "slug": "surface-light", "color": "#F8FAFC", "name": "Light Slate" },
        { "slug": "surface-white", "color": "#FFFFFF", "name": "White" }
      ]
    },
    "typography": {
      "customFontSize": false,
      "lineHeight": false,
      "fontSizes": [
        { "slug": "body", "size": "1.125rem", "name": "Body" },
        { "slug": "h3", "size": "1.5rem", "name": "Subheading" },
        { "slug": "h2", "size": "2.25rem", "name": "Section Heading" },
        { "slug": "h1", "size": "3.25rem", "name": "Hero" }
      ]
    },
    "spacing": {
      "customSpacingSize": false,
      "spacingSizes": [
        { "slug": "sm", "size": "1.5rem", "name": "Small" },
        { "slug": "md", "size": "3rem", "name": "Medium" },
        { "slug": "lg", "size": "6rem", "name": "Large" }
      ]
    }
  }
}

What this gets you:

  • No rogue colors: "custom": false and "defaultPalette": false remove the color picker and the WordPress default palette. Only your four colors are available.
  • Predictable markup: blocks reference slugs like {"backgroundColor":"brand-accent"}, which map to CSS variables (--wp--preset--color--brand-accent). Change the hex in theme.json later and every generated page updates with it.

Control Voice & Behavior with a Claude Skill

theme.json handles visuals but knows nothing about how your brand sounds or what Claude should never click. That’s what a skill is for. Instead of pasting a giant prompt every time, you package the rules once and Claude loads them whenever it works in WordPress.

Here’s the structure I’d start with:

wp-brand-publisher/
├── SKILL.md
├── voice-and-tone.md
└── approved-block-markup.md

SKILL.md sets the rules:

  • Voice: point to voice-and-tone.md for reading level, banned words ("delve", "unleash", "game-changing"), heading case and CTA rules (verb first, under four words).
  • Allowed blocks: core blocks only (core/group, core/columns, core/heading, core/paragraph, core/buttons) or your registered block patterns, with exact preset slugs listed in approved-block-markup.md.
  • Hard limits: never click Publish, never change a live page’s permalink, never install plugins or edit global styles. Every run ends with Save draft and the preview link for a human to review.

Upload it to Claude (or drop it in ~/.claude/skills/ if you drive Chrome from Claude Code) and anyone on the team can ask for "a landing page for our Q4 partner webinar" and get the same structure, tone and styles on the first try.

When to Use a Custom Template

Even with both of those in place, not every page should be assembled freehand.

Letting Claude stack blocks is fine for repeatable, content heavy pages where a slightly different layout doesn’t matter. Your homepage, pricing page and core product pages are different. They have conversion work baked in, responsive edge cases, toggles and often legal review. Nobody, AI or human, should be rearranging sections on those whenever they feel like it.

Page Type Approach What Claude Does
Blog posts & guides Standard editor + theme.json + skill Formats headings, lists, callouts and links freely within brand styles
Campaign & event pages Block patterns + skill Assembles approved hero, social proof and FAQ patterns and writes the copy
Homepage, pricing & product pages Locked custom template Edits text in specific slots only, never layout or styles

Locking a Page Down

For high stakes pages, build a dedicated template (like page-pricing.html in a block theme), use ACF fields feeding a custom template, or wrap patterns in a group with "templateLock":"contentOnly":

<!-- wp:group {"templateLock":"contentOnly","align":"full","backgroundColor":"surface-light"} -->
<div class="wp-block-group alignfull has-surface-light-background-color has-background">
    <!-- wp:heading {"level":1} -->
    <h1 class="wp-block-heading">Headline Placeholder</h1>
    <!-- /wp:heading -->
    <!-- wp:paragraph -->
    <p>Subheadline value proposition goes here.</p>
    <!-- /wp:paragraph -->
</div>
<!-- /wp:group -->

With contentOnly locking, the editor hides block movers, column resizing and layout controls. When you ask Claude to update a seasonal promo or localize a pricing tier, it can edit the text and nothing else. The layout and pricing cards stay exactly as designed.

Who Handles What

  • theme.json enforces colors, typography and spacing
  • Claude Skills enforce voice, approved patterns and draft only rules
  • Custom templates protect the homepage, pricing and product pages from structural edits

Start with a staging site and a basic draft prompt to see how Claude handles the block editor, then add these one at a time. If you want help setting this up on your own site, get in touch.