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', { supports: { className: false }...
It’s all In browser cache .. you can use a private browser or cleaning the browser cache every time you try to make any change .. and you will...
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 temporary fixes until the update has...
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 this is the dropdown in the Query...
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 create a new post/page, insert the...
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 system using ACF and Foundation. I...
Success! I had to pass the viewBox attribute from the Font Awesome SVG file. The code below worked for me: