Closed bph closed 10 months ago
Because the Grid variation has never landed in core for the Group block, I wanted to tackle this from a different angle.
First, technically, grid support is available to any block (or variation) that opts into it. So, the primary purpose of the post will be showing developers how to enable it in a forward-compatible way for the Group. Basically, creating their own Grid variation.
But this post could also potentially how block developers can enable it for their own blocks.
I will draft this here: https://docs.google.com/document/d/1IBogXvaZygADpiTfJ3sMhaWsG74434j42CEOGTZYHFQ/edit?usp=sharing
This one is ready for its first review: https://docs.google.com/document/d/1IBogXvaZygADpiTfJ3sMhaWsG74434j42CEOGTZYHFQ/edit?usp=sharing
Thanks to @ndiego for the first pass on this.
@justintadlock, I left a couple of very minor suggestions. Otherwise, the post looks great to me. At first, I had questions about using upper or lower case in "grid," but I see that it follows a consistency when it has been capitalized.
Yeah, the uppercase use should specifically be the named variation and lowercase when talking about the CSS feature.
I am happy to report that—after nearly a year—this post is finally published! 🥂
Social copy:
Did you know that WordPress has built-in grid support? Learn how to enable it in your WordPress themes and build even more amazing layouts!
https://developer.wordpress.org/news/2024/01/29/how-to-disable-specific-blocks-in-wordpress/
scheduled on social for 2/29 or so.
Did you know that WordPress has built-in grid support? Learn how to enable it in your WordPress themes and build even more amazing layouts! https://developer.wordpress.org/news/2024/01/29/how-to-disable-specific-blocks-in-wordpress/
@justintadlock, should the link be this instead? https://developer.wordpress.org/news/2024/02/06/adding-and-using-grid-support-in-wordpress-themes/
Discussed in https://github.com/WordPress/developer-blog-content/discussions/94