GCBGutenberg
Control Blocks
v1.2
Buy

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. 42 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, 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 19 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.

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" }

Build anything in the block editor

Every licence includes all features and a year of updates and support.

Buy GCB from $49 See pricing