theme.json Is the New functions.php (for Styles)
theme.json is the canonical place to configure block editor styles, settings, and tokens. Colour palettes, font sizes, layout sizes, and spacing units all live there.The big benefi…
Read article →Notes on JavaScript, PHP, WordPress, design, performance, and the practical side of shipping better digital products.
Topics covered
The blog is designed to support both technical readers and clients who want clearer language around scope, quality, and implementation decisions.
theme.json is the canonical place to configure block editor styles, settings, and tokens. Colour palettes, font sizes, layout sizes, and spacing units all live there.The big benefi…
Read article →The Block Bindings API connects block attributes to dynamic data sources — post meta, options, or any registered source. core/paragraph can read its content from…
Read article →A block pattern is a template — inserting it copies the blocks into the document, and edits do not affect the pattern. A reusable block…
Read article →wp search-replace old new --dry-run is the safest way to move a site between domains. Always run with --dry-run first.wp db export takes a fast…
Read article →Register routes with register_rest_route(). The permission_callback is required — set it to __return_true only when the route is genuinely public.For privileged operations, check c…
Read article →