-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some block patterns do not show in the inserter #32139
Comments
Thank you for at least figuring out what wasn't working with this. I've been digging everywhere and testing (almost) everything to figure out why none of my 30+ patterns were working. |
I ran all my patterns through this for a quick fix:
|
@youknowriad I am not certain this issue is resolved, as when trying to register the following pattern on WP 5.9.1, it does not register: register_block_pattern(
'wp-core-test/test-pattern-with-columns',
[
'title' => 'Test Pattern',
'content' => '<!-- wp:group --><div class="wp-block-group"><!-- wp:columns --><div class="wp-block-columns"><!-- wp:column --><div class="wp-block-column"></div><!-- /wp:column --><!-- wp:column --><div class="wp-block-column"></div><!-- /wp:column --></div><!-- /wp:columns --></div><!-- /wp:group -->',
]
); However, the following pattern does register: register_block_pattern(
'wp-core-test/test-pattern-with-columns',
[
'title' => 'Test Pattern',
'content' => '<!-- wp:group --><div class="wp-block-group"><!-- wp:columns --><div class="wp-block-columns"></div><!-- /wp:columns --></div><!-- /wp:group -->',
]
); I discovered this issue when trying to make a two column pattern (with headings, paragraphs, images, etc), and only when we remove the columns does the pattern register. |
Never mind, the issue was that the |
Description
When testing the block patterns that are planned for Twenty Fourteen,
I learnt that the patterns show correctly in 10.6.2 but not in 10.7 RC1.
With 10.7 RC1, only two of the patterns show (summary and contact).
I was able to reproduce this in my own themes. It seems to be related to spacing inside the
content
.The following does not work, the pattern is not selectable:
The following does work:
Step-by-step reproduction instructions
Expected behaviour
All registered patterns should show
Actual behaviour
Only two of the patterns show.
WordPress information
Device information
The text was updated successfully, but these errors were encountered: