-
hogmalms
Hello!
I do have an issue with the latest update.
The tags does not work inside the native blocks anymore.For example: html tags is not allowed inside GB text block. Solution was to create a custom html block, and write this inside:
<span>Last updated <time datetime="{{post_date dateFormat:Y/m/d|type:modified}}">{{post_date dateFormat:Y/m/d|type:modified}}</time></span>
I did this because I need to have the <time> element.
This worked until this update. Is there any filter to allow the pass through the tag? -
David
Hi there,
yes, you can use the
generateblocks_dynamic_tags_allowed_blocks
filter hook. Here’s an example:add_filter( 'generateblocks_dynamic_tags_allowed_blocks', function( $blocks ) { $blocks[] = 'yourprefix/block-name'; return $blocks; } );
-
hogmalms
Works perfect! Thank you!
-
David
You’re welcome
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.