I can’t highlight/select text in the RichText components in my Gutenberg blocks
I can’t highlight/select text in the RichText components in my Gutenberg blocks
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
Different style options for the same block depending where it is used
Answer – When the post saves a version of the block, it saves it with the current custom post type blocks attrs as its own attrs. This locks the attrs from the custom post type to the regular post at that time. A solution is to get the custom block type id and get the … Read more
Unable to remove panels
Block-based navigation and multi-language plugins