I can blocks!
-
Blocks? OMGWTF… ??
function loadMyBlock() { wp_enqueue_script( 'my-new-block', plugin_dir_url(__FILE__) . 'test-block.js', array('wp-blocks','wp-editor'), …
(code snippet taken from a comprehensive tutorial by Flywheel.)
Before you go crazy and lose your mind over complicated code, there is an easier way to create your own blocks for WordPress’ block editor (aka Gutenberg):
Block Lab provides you with an easy form builder to set up your blocks and the documentation tells you, how you can add custom templates for rendering your new block. Forget about REACT and “learn JavaScript deeply” – this plugin is a big time saver and you only need very basic skills in PHP and CSS.Great tool. Strong recommendation.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘I can blocks!’ is closed to new replies.