Your template for InnerBlocks has a small typo in supports: { classname: false } (it’s case-sensitive) and should be className: const MY_TEMPLATE = [...
If someone also need this nowadays WordPress already has another filter that is easier to implement called render_block https://developer.wordpress.org/reference/hooks/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 ...
-
February 27, 2022
- 0 Comments
Success! I had to pass the viewBox attribute from the Font Awesome SVG file. The code below worked for me: