GCBGutenberg
Control Blocks
Buy

Field type

marks

A block's brand marks: the blobs, the stamp, the note the site's style draws, placed on the block's band by a person on a popout canvas. GCB gives this field itself to a block whose block.json says "supports": { "gcbMarks": true }, when the theme has a brand-elements.json; a block does not declare it.

Type: marks · Stored attribute type: array

Stored value

array — [{ mark, place, x, y, size?, text?, turn, front, motion, phone }]; mark one of the theme's brand-elements.json ids; place top-start|top|top-end|start|center|end|bottom-start|bottom|bottom-end|seam-top(-start|-end)|seam-bottom(-start|-end); x/y a nudge in percent of the mark's own size (-2000 to 2000); size its width in percent of the band's (5 to 120; none for a mark drawn in words); text the words of a mark in words; turn degrees; front over the words; motion ""|float|sway|spin|drift|rise|stamp|draw; phone show|smaller|hide

Supports

  • Up to 4 marks a block, only the site's own (its theme's brand-elements.json): never a mark the style does not list.
  • A canvas: the band drawn small with the bands above and below hatched, fifteen spots to put a mark on (the corners, the edges' middles, the middle, three on each seam), and a mark dragged to nudge it.
  • Beside the canvas, what the style says each mark is for and must never do.

Gotchas

  • The block's render.php does nothing: GCB writes the marks into its band (its data-gcb-kit="section", or its first element) as the kit's brand-element part, on the page and in the editor's preview.
  • A mark in words (the stamp, the note) is the theme's own HTML from brand-elements.json, with {text} replaced by the person's words, escaped.

Example

JSON
// the theme's brand-elements.json
{ "marks": [
    { "id": "blob-1", "name": "Blob, round", "shape": "var(--bk-blob-1)", "colour": "var(--bk-blob)", "size": 45, "place": "end", "motion": "float",
      "use": "Behind a photograph or off a band's edge.", "never": "Never behind words." },
    { "id": "stamp", "name": "Her stamp", "html": "<span class=\"bk-stamp\">{text}</span>", "text": "Sorted", "turn": -12, "front": true, "motion": "stamp" } ] }
// a block's block.json
{ "supports": { "gcbMarks": true } }

The marks field

In the block's Styles tab: each mark it wears, small, and the button that opens the canvas. On the canvas, add one of the site's marks, press a spot on the band to put it there, drag it to nudge it, and set its size (or its words), its turn, how it moves, whether it is in front of the words, and what it does on a phone.

Every field also takes the keys common to all fields.

Built from GCB Lite 0.4.0 (ce232d4). Source: schemas/controls/marks.md.

Copyright © 2026 Runchain. WordPress is a trademark of the WordPress Foundation.