André Amorim

Crafting Web Experiences

Home » My Notes » Gutenberg Instructions/Documentation

//

Gutenberg Instructions/Documentation

How to create a block? npx @wordpress/create-block@latest <block-name>

Generate .pot file for block translation:

mkdir languages
wp i18n make-pot ./ languages/myguten.pot

After translating with Poedit or the Loco Translate plugin (better sync), you need to generate the .json files for the translations to take effect in the block editor:

wp i18n make-json myguten-eo.po --no-purge

How to create a block?

Default Components:

Default Blocks Repo: https://github.com/WordPress/gutenberg…ibrary/src

How to Extend the Loop Query Block? https://developer.wordpress.org/block-…-loop-b-

How to put a Block inside another Block? (Nested Blocks) https://developer.wordpress.org/block-…-blocks-

The Required Files & Block Data Flow:

The Gutenberg Block Editor:

Interactive API: https://github.com/WordPress/gutenberg…tivity-api

Blogs:

Package to create an ACF Block boilerplate: https://www.thetwopercent.co.uk/create…n-package/


Published date:

Modified date: