Block pattern do not show in the inserter
-
Hello,
since the update to version 5.8, this simple pattern is no longer displayed in the inserter.register_block_pattern( "mywpsite/test", [ "title" => esc_html__("Test"), "categories" => ["mywpsite-default"], "content" => trim(str_replace(["\n", "\r", "\t"], "", ' <!-- wp:columns --><div class="wp-block-columns"> <!-- wp:column --><div class="wp-block-column"> <!-- wp:heading --> <h2>Hello world</h2> <!-- /wp:heading --> </div><!-- /wp:column --> </div><!-- /wp:columns --> ')), ] );
Whenever I remove the column, the pattern is shown up.
Can anyone help me?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Block pattern do not show in the inserter’ is closed to new replies.