Add a new option to Social Link block
Add a new option to Social Link block
Add a new option to Social Link block
I finally worked out the issue, the problem was that I was defining my “attributes” object in the package.json file and not the block.json file! Bug thanks to @Tom J Nowell (https://wordpress.stackexchange.com/users/736/tom-j-nowell) for helping me realise!
Lazy load video block while keeping autoplay
How do I have two RadioControls in my custom Gutenberg block?
I can’t highlight/select text in the RichText components in my Gutenberg blocks
I think the solution is clearer, and already hinted at in your attributes Add a new input for the text, and set its value to the btnText attributes value, allow it to update that attribute on change when you set the URL, don’t use (post && post.title) || ‘Click here’ instead use (post && post.title) … Read more
Get attributes from last block created
How to add “rel=nofollow” for links in latest version of WordPress?
ok i found the issue at least for me, so maybe it will help others: on my templates , on the post-content comment i added: {“layout”:{“type”:”constrained”}} that fixed the align issues.
For anyone interested, with the suggestion from @TomJNowell I managed to retry using the render_block filter and simplify the solution to the problem: Callback function (replacing example_filter_the_page_content() from my initial post): /** * Callback function used to skip intro section block from rendering. * * To be used as callback for the `render_block` filter. */ … Read more