Gutenberg InnerBlocks predefined block supports
Your template for InnerBlocks has a small typo in supports: { classname: false } (it’s case-sensitive) and should be className: const MY_TEMPLATE = [ [ ‘my-block/icon’, … Read more
Your template for InnerBlocks has a small typo in supports: { classname: false } (it’s case-sensitive) and should be className: const MY_TEMPLATE = [ [ ‘my-block/icon’, … Read more
It’s all In browser cache .. you can use a private browser or cleaning the browser cache every time you try to make … Read more
Adjusted some of your code. This should work:
After some search, the problem was in the pages which contains ACF blocks ACF plugin is not compatible with the latest WP 5.9.1 … Read more
For anyone who needs this too, here is how you restrict a block for single use only: Further documentation can be found here: https://www.advancedcustomfields.com/resources/acf_register_block_type/
If creating a dropdown list (select) for the edit() function of a Gutenberg block, registered post types can be retrieved with getPostTypes() via useSelect() in JavaScript. An example of … Read more
Block content (including woocommerce blocks) can be rendered in a template via the do_blocks() function. The easiest way to generate the block code is to … Read more
If someone also need this nowadays WordPress already has another filter that is easier to implement called render_block render_block Here is an example
have been searching everywhere to figure out how to add an event inside a Gutenberg block. I am working to add an accordion … Read more
Success! I had to pass the viewBox attribute from the Font Awesome SVG file. The code below worked for me: