GCBGutenberg
Control Blocks
v1.2
Buy

Take control of WordPress.

GCB is a WordPress plugin for building your own Gutenberg blocks with fields, by hand or with Claude Code. Build anything your design needs, with control over every field. Each one is a standard block registered with block.json, so your clients edit every word, image and setting in the editor they already know, without breaking the design.

30-day money-back guarantee.

Control over every block

Your blocks are ordinary Gutenberg blocks, registered with block.json and built from WordPress's own components. This is what GCB adds to them.

A Solace hero in the WordPress editor: the heading being retyped on the page, with the sidebar heading field showing the same words.
Type on the page. The sidebar field changes with it.
  • Typed fields

    Exactly what you (or your agent) define

    Headings, text, links and images your client edits right on the page or in the sidebar. Both stay in sync.

    render.php
    <h1 data-gcb-field="heading" data-gcb-field-type="text">
      <?= esc_html( $attributes['heading'] ) ?>
    </h1>
  • Real WordPress blocks

    Blocks from a list you choose

    Areas where your client adds normal WordPress blocks, limited to the ones you allow. One block can have several of these areas, each with its own list, or repeaters that add the same block again and again: an introduction, a row of product cards, a row of buttons.

    render.php
    <InnerBlocks data-gcb-slot="0" allowedBlocks='["core/heading", "core/paragraph"]' />
    <Repeater allowedBlocks='["gcb/frame"]' min="2" max="4" />
    <InnerBlocks data-gcb-slot="1" allowedBlocks='["core/buttons"]' />
The WordPress editor showing three Solace frame cards repeating in a grid, with an Add row button on the canvas.
render.php
<Repeater allowedBlocks='["gcb/frame"]' addButtonLabel="Add frame" min="2" max="4" editLayout="grid" />

These shots are GCB's own Layout, Carousel, Tabs and Accordion blocks, which use the same editLayout values.

Saving failed. Frame line-up needs at least 2 items (has 1). The editor blocks the save and points to the block.
Below the minimum: “Frame line-up needs at least 2 items (has 1).”
A Frame line-up at 4 of 4 frames, with the Add frame button turned off and the note limit reached.
At the maximum: “4 of 4 frames · limit reached”.
The GCB layout field for a Solace page, with four boxes and the note Repeats every 4 items.
The Solace hero in the WordPress editor with Button goes to set to A page, showing the Button link field with Shop sunglasses.
The Solace hero in the WordPress editor: Saving failed. Solace hero: Heading, Intro need fixing, with Find the block; in the sidebar the Heading field is ringed red with Heading is required, and the Intro with Must be 120 characters or fewer.
The real messages: “Heading is required.” and “Must be 120 characters or fewer.”
GCB's Eject blocks page in wp-admin: Solace hero and Frame line-up ticked, plugin name Solace Blocks, and a preview listing what carries over, nothing needing manual work, and the checks php, js, ours, offline and scope all ok.
Two Solace blocks become one plugin, Solace Blocks, that runs without GCB.

Fields made for each block, not a form

Give every block the fields its design needs: a focal point for a photo, a grid your client can rearrange, a path to draw, layers with real depth. More than 40 field types, built from WordPress's own components and defined in one JSON file.

  • TypedEach field stores its own type: text, number, image, list
  • Your theme's tokensPalette, type sizes and spacing presets
  • Editable on the pageText, images and links in place
  • ConditionalShow a field only when it applies
  • Versioned in Gitblock.fields.json in your repo
  • ExtendableRegister your own field types

1 · Everyday fields

Start with the fields you'd expect

Text, choices, dates, media, colour and content from the site. Each one is a WordPress component your client already knows, with your theme's tokens built in.

GCB's frame panel in the WordPress editor for a Solace frame block: Name, story, price, lens select, size buttons and a stock toggle.

Icons

Icons, under your control

Icons are everywhere on a website, so GCB gives them a proper field. You decide which icons your client can see: switch icon sets on or off for the whole site, or limit a single field to your brand's own icons or a hand-picked list. Your client searches and picks, and only ever sees what your branding allows.

  • WordPress's own iconsThe icon registry built into WordPress 7.
  • Tabler, 5,000+ iconsOpen source (MIT), searchable from the same picker.
  • Your client's own libraryUpload SVGs in Settings and they become the site's icons, cleaned and coloured to match the text.
  • Any other setAdd a source with the gcblite_icon_sources filter.
block.fields.json
{
  "id": "c_icon",
  "type": "icon",
  "label": "Perk icon",
  "attributeKey": "icon",
  "namespace": "site"
}

Use namespace to show only one set, such as your uploaded brand icons, or filter to list the exact icons a field allows.

The GCB icon picker searching sun on a Solace perks block: the site's own sunglasses icon first, then Tabler sun icons.
Searching “sun”: the client's own brand icon first, then Tabler.
Settings, Icons: switches for WordPress and this site, Your icons and Tabler, and an uploaded sunglasses icon.
Settings: switch icon sources on or off, and upload your own.

2 · Fields WordPress doesn't have

Then everything WordPress leaves you to build

WordPress gives you components, not a field system. GCB has 20 field types you'd otherwise build by hand for every project: repeaters and relationships, galleries with focal points, maps and icons, layouts your client can rearrange, paths to draw and layers with real depth. This is where a block starts to look custom-made.

Image field

Photos that stay on their subject

Your client picks from the Media Library and sets a focal point, shape and zoom. The focal point is on by default. Every crop keeps the subject in view, from a full-width banner to a phone.

block.fields.json
{
  "id": "c_photo",
  "type": "image",
  "label": "Photo",
  "attributeKey": "photo",
  "enableShape": true,
  "enableTile": false,
  "enableRepeatOptions": false,
  "enableFixedBackground": false
}
The GCB Picture block's image field: a woman walking the Bondi promenade at golden hour, the focal point at 66% across and 60% down, zoom 1.2 and a Wide (16:9) shape.

3 · Your own fields

Build your own field from the same parts

Every GCB field is made from WordPress components, and you can use the same parts. This star rating is a whole field type: declare it in PHP, draw it with WordPress's own buttons, and use "type": "rating" in any block. Write it by hand, or ask Claude Code.

Ask Claude Code“Make a GCB field type for a star rating from 1 to 5.”

A Solace review block in the WordPress editor: four of five stars on the page, and the Rating field in the sidebar showing the same four stars as buttons.
This field, running in the editor. Click a star and the review changes with it.
rating-field.php
add_action( 'gcblite_register_control_types', function () {
  wp_register_script( 'rating-field', content_url( 'mu-plugins/rating/rating.js' ), [ 'wp-element', 'wp-components' ] );
  gcblite_register_control_type( 'rating', [ 'shape' => 'integer', 'script' => 'rating-field' ] );
} );
rating.js
const { createElement: el } = wp.element;
const { BaseControl, Button } = wp.components;

window.gcbLiteControls.register( 'rating', ( { control, value, onChange } ) =>
  el( BaseControl, { label: control.label },
    el( 'div', null, [ 1, 2, 3, 4, 5 ].map( ( n ) =>
      el( Button, { key: n, label: n + ' stars', onClick: () => onChange( n ),
        icon: n <= value ? 'star-filled' : 'star-empty' } )
    ) )
  )
);
block.fields.json
{ "id": "c_stars", "type": "rating", "label": "Rating", "attributeKey": "stars" }

Fields for posts, options, terms and users

Define fields once and use them for structured content too. Add the same field types, with validation, to any post type, an options page, categories and tags, or user profiles, then read the values in PHP or from the REST API as typed JSON.

Edit frame, a Solace frame record in wp-admin: the same GCB fields as the block, with 2 fields need attention before this can be published, Name is required and Must be 140 characters or fewer.
A Solace frame record in wp-admin: the same fields as the block, checked before it's published.
  • Post typesgcblite_register_post_fields()For team members, testimonials, projects and any other kind of record.
  • Options pagesgcblite_register_options_fields()For site-wide settings such as opening hours or social links.
  • Categories and tagsgcblite_register_taxonomy_fields()Add an image or a colour to each category.
  • User profilesgcblite_register_user_fields()Add a job title, a photo or a short bio to each author.

Works with your theme's design tokens

Fields can offer your theme's tokens instead of any value: set a field's tokenGroup and tokenKeys and it offers your palette or spacing presets from theme.json. A spacing field stores the preset's name, so your blocks follow the theme when it changes.

{}block.fields.json the same in every theme

{ "id": "c_background", "type": "color",
  "label": "Background", "attributeKey": "background",
  "tokenGroup": "color:palette",
  "tokenKeys": [ "primary", "base", "contrast" ] },

{ "id": "c_space_below", "type": "spacing",
  "label": "Space below", "attributeKey": "spaceBelow",
  "tokenGroup": "spacing:presets" }

From this theme: primary base contrast

PageBlock
Background

Colours from theme.json.

Space below
NoneSML

  • Your colour palette

    Colour fields show your theme's palette automatically.

  • Spacing presets

    Spacing fields use your theme's spacing presets and store the preset's name.

  • Limit the choices

    Choose which tokens each field offers, and turn off custom values.

  • Add new tokens

    Add a token while setting up a field and GCB can save it to your theme's theme.json, if the file is writable.

Works with block themes, and classic themes such as Astra

One request for all your blocks

When the editor loads, GCB fetches the previews for every block on the page in a single request to /gcblite/v1/render-batch (up to 100 blocks per page), instead of one request per block. The whole page appears at once.

One request per blockhow server-rendered blocks usually load
  1. block 1
  2. block 2
  3. block 3
  4. block 4
  5. block 5
  6. block 6
  7. block 7
  8. block 8
  9. block 9
  10. block 10
  11. block 11
  12. block 12
  13. block 13
  14. block 14
GCB: one request for all your blocksPOST /gcblite/v1/render-batch
  1. render-batch

All 14 previews come back in one response.

  • Cached previews

    Blocks that haven't changed reuse their last preview, and GCB sends only the latest change.

  • Responsive typing

    Typing on the page doesn't send a request with every key press.

  • Fast headless previews

    Front-end previews are cached, so they show straight away and refresh in the background.

Choose freedom, control or both

You decide how much your client can change, block by block. Give them InnerBlocks where they should be free to add blocks, limited to the blocks you allow, or typed fields where you want control over exactly what goes in.

  • Freedom, on your terms

    InnerBlocks, with more control than patterns

    As with a pattern, your client can add, move and remove blocks inside the area. Unlike a pattern, you choose which blocks are allowed from a list, and the block around them can run its own JavaScript, such as a carousel, a filter or a scroll animation.

    <InnerBlocks allowedBlocks='["core/heading", "core/paragraph", "core/buttons"]' />
  • Control

    Typed fields

    Your client fills in exactly the fields you define. Colours and spacing come from your theme's tokens, and a list's minimum and maximum stop the page from saving until it's right.

    block.fields.json
  • Both

    Fields and InnerBlocks in one block

    Use typed fields for the parts that must stay on brand, such as a heading, an image and a colour, and InnerBlocks for the parts your client should shape themselves.

    fields + <InnerBlocks />

As many InnerBlocks areas as your design needs

Core Gutenberg allows one InnerBlocks area per block. With GCB, one block can have several, such as an introduction, an image and a row of buttons, each in its own area marked with data-gcb-slot.

⌖ Feature
area 0
Made in Sydney since 2014.
+
area 1
+
area 2Visit the shopOur story+
render.php — thread
<section <?= get_block_wrapper_attributes() ?>>
  <div class="intro">
    <InnerBlocks data-gcb-slot="0" />
  </div>
  <figure class="media">
    <InnerBlocks data-gcb-slot="1" />
  </figure>
  <footer class="actions">
    <InnerBlocks data-gcb-slot="2" />
  </footer>
</section>
⎇ mainPHP

Hover over a line of code to see which area it fills.

Define your fields. Pick your framework.
GCB just reads the HTML.

Write your block templates in PHP, or render them from any server that returns HTML over HTTP: Next.js, Astro, Nuxt, SvelteKit and the rest. Twig and Blade work through your own bridge in render.php, such as Timber or Acorn. GCB reads the markers in that HTML (fields edited in place, InnerBlocks and Repeater areas) and turns them into the editor; the sidebar comes from block.fields.json. It's just HTML, so if your stack can output it, you can build a block with it.

  • phprender.php

    <h2 data-gcb-field="heading"
        data-gcb-field-type="text">
      <?= esc_html( $attributes['heading'] ) ?>
    </h2>
    <InnerBlocks data-gcb-slot="0" />
  • jsxFeature.jsx

    <h2 data-gcb-field="heading"
        data-gcb-field-type="text">
      {attributes.heading}
    </h2>
    <InnerBlocks />
  • twigfeature.twig

    <h2 data-gcb-field="heading"
        data-gcb-field-type="text">
      {{ attributes.heading }}
    </h2>
    <InnerBlocks data-gcb-slot="0" />
  • bladefeature.blade.php

    <h2 data-gcb-field="heading"
        data-gcb-field-type="text">
      {{ $attributes['heading'] }}
    </h2>
    <InnerBlocks data-gcb-slot="0" />

The HTML GCB reads

<h2 data-gcb-field="heading" data-gcb-field-type="text">Made in Sydney since 2014.</h2>  ← the heading field, edited in place
<innerblocks data-gcb-slot="0"></innerblocks>  ← a live area for any block

Headless, finally solved

Headless WordPress with real visual editing

Teams have tried for years to go headless without losing the block editor, and most ended up with clients editing grey boxes and forms. GCB does it: WordPress for editing, Next.js or another framework for your front end, and the editor loads each block's preview from your front end, so your client edits the real design.

Find a store · Edit page
⌖ Store locator

Our stores

Find your nearest store

  • Surry HillsOpen till 6
  • PaddingtonOpen till 6
  • GlebeOpen till 6
Heading
Find your nearest store
Map
Marker colour
WordPress, where your client edits
the same block and HTML
solace.com.au/stores

Our stores

Find your nearest store

  • Surry HillsOpen till 6
  • PaddingtonOpen till 6
  • GlebeOpen till 6
Next.js, where visitors see your site
  • Edit in WordPress

    The block editor, sidebar fields, undo and revisions all work as usual.

  • Previews from your front end

    Your own components render each block's preview, so what your client sees is what gets published.

  • Render with any framework

    Read the page's blocks and fields from WordPress and render them in React or any other framework. Every GCB REST route is listed in the docs.

The way professional WordPress sites are built now

Real Gutenberg blocks, typed fields, theme tokens and code in Git. It gives you an edge over agencies still building with legacy ACF field groups and page builders, and your clients get a site that's easier to edit and harder to break.

FeatureGCBACF Blocksblock.json + ReactPage builders
Standard Gutenberg blocks, registered with block.jsonYesYesYesNo
More than 40 field types, saved as JSONYes30+, with Local JSONBuild each oneTheir own widgets
Edit text right on the pageYesYes (ACF PRO 6.7+, opt-in)If you code itYes
One template for the editor and the front endYesYesNo, edit.js and render–
Repeatable blocks on the pageYesWith InnerBlocksBuild itSome
Multiple InnerBlocks areas in one blockYesOneOne–
Fields for posts, options, terms and usersYesYesregister_meta, by handNo
Batch rendering, with one request per pageYes–No, one per block–
Fields that use theme.json tokensYes–By handTheir own system
Headless, with visual editingYes–NoNo

Yearly pricing

Every licence includes all features and a year of updates. Choose a plan for the number of sites you need.

Personal

1 website

$49a year

  • All fields and blocks
  • A year of updates and support
  • Full documentation for you and Claude Code

Freelancer

Most popular

10 websites

$149a year

  • All fields and blocks
  • A year of updates and support
  • Full documentation for you and Claude Code

Agency

Unlimited websites

$249a year

  • All fields and blocks
  • A year of updates and support
  • Full documentation for you and Claude Code

30-day money-back guarantee.

Prices are in US dollars. Licences renew each year at the same price, and you can turn off renewal at any time. Local and staging sites don't count towards your limit: localhost, *.localhost, *.test, *.local, staging.* and dev.*.

Requirements: WordPress 7.0 or later and PHP 7.4 or later. GCB is licensed under the GPL (version 2 or later), and your licence includes a year of updates.

Frequently asked questions

It's a WordPress plugin for building your own Gutenberg blocks with fields, including text, images with focal points, maps, layouts, paths, layered scenes and over 30 more. You write the block's template in PHP or React and list its fields in JSON, and your client edits the block in the editor they already know.

Run wp gcblite scaffold team-grid --controls="heading:text,intro:textarea" and GCB writes a folder in your theme's blocks/ directory with block.json, block.fields.json, render.php and style.css. Add --dry-run to see the block.json and the files it would write. A PHP block has no build step: there's no edit.js or save.js to write, because GCB builds the editor from your fields.

No. GCB extends WordPress rather than replacing it. Each block is registered with block.json, its fields use the same @wordpress/components as the core editor, and its colours and sizes come from theme.json and WordPress's --wp--preset--* variables. As WordPress changes, your blocks keep working with it.

Yes, and with other coding agents too. Each block is a folder of plain files, and the full documentation is public and ships as llms.txt, so your agent can read it. Agents can also pipe a JSON spec to wp gcblite scaffold --stdin. If you ask for a store locator, for example, the agent builds one with the fields your client needs.

Each licence comes with a key for its number of sites: a Personal licence covers one site, Freelancer covers ten, and Agency covers as many as you like. The key gives those sites a year of updates and support.

Yes. Get in touch and we'll move you to the bigger licence.

No. Sites on localhost, *.localhost, *.test, *.local, staging.* and dev.* are free. Only live sites count towards your limit.

Yes. If GCB isn't right for you, ask for a refund within 30 days and you'll get your money back in full.

No. GCB fetches every block's preview in one request instead of one per block, reuses previews that haven't changed, and doesn't contact the server while your client types on the page.

Only as much as you let them. Where you use InnerBlocks, your client can add and arrange blocks, but only the ones you've allowed. Where you use typed fields, they can only fill in what you've defined: colours and spacing come from your theme's tokens, and a list's minimum and maximum stop the page from saving until it's right. You can mix both in one block.

Yes. Declare the type in PHP with gcblite_register_control_type() on the gcblite_register_control_types action, and register its React component with window.gcbLiteControls.register(). It then works in any block.fields.json, like the built-in fields. Every gcblite_* action and filter is listed in the docs too, such as gcblite_block_dirs for loading blocks from your own plugin.

No. Your templates are plain PHP or React, your fields live in block.fields.json in your own repository, versioned in Git, so every change is a diff you can review. The blocks are the same kind WordPress uses for its own, and nothing is hidden in the database.

Still got a question? Email admin@gutenbergcontrolblocks.com.

No lock-in

Build anything in the block editor

Make WordPress beautiful, and keep control of every block. Your client doesn't need to learn a separate builder, and there's nothing to migrate away from later. Your blocks sit alongside the core blocks, use your theme's styles and keep up with WordPress as it changes.

Buy GCB from $49
An isometric city built from WordPress blocks in blue glass, with code panels, the block editor and a tower carrying the GCB cube.