Skip to content
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

Using the Grid layout type for theme creators #211

Closed
bph opened this issue Jan 31, 2024 Discussed in #94 · 9 comments
Closed

Using the Grid layout type for theme creators #211

bph opened this issue Jan 31, 2024 Discussed in #94 · 9 comments
Assignees

Comments

@bph
Copy link
Collaborator

bph commented Jan 31, 2024

Discussed in #94

Originally posted by justintadlock April 4, 2023
Gutenberg 15.5 is introducing a new Grid layout type: WordPress/gutenberg#49018

Currently, it's usable as an experimental Group block feature: WordPress/gutenberg#49359

Once this is out of the experimental state, this will be a major layout feature for theme authors, and they'll need to know how to build with it. This is still early in development, so it'll be a while before it's ready for any sort of docs/tutorials. But, I wanted to go ahead and note it for a future post.

I'm super excited about this because I've just been wanting to build something like this layout for two years now with proper layout support instead of hacking Columns to make it happen:

gb-gallery-w-quote

@justintadlock
Copy link

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.

@justintadlock justintadlock moved this from To-do to In Progress in Developer Blog Content Board Jan 31, 2024
@justintadlock
Copy link

@justintadlock
Copy link

@justintadlock justintadlock moved this from In Progress to Needs 1st review in Developer Blog Content Board Feb 2, 2024
@justintadlock justintadlock moved this from Needs 1st review to Done w/ 1st Review in Developer Blog Content Board Feb 2, 2024
@justintadlock
Copy link

Thanks to @ndiego for the first pass on this.

@justintadlock justintadlock moved this from Done w/ 1st Review to Needs 2nd review in Developer Blog Content Board Feb 2, 2024
@rmartinezduque
Copy link

@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.

@justintadlock justintadlock moved this from Needs 2nd review to Done w/ 2nd review in Developer Blog Content Board Feb 6, 2024
@justintadlock
Copy link

Yeah, the uppercase use should specifically be the named variation and lowercase when talking about the CSS feature.

@justintadlock justintadlock moved this from Done w/ 2nd review to Ready to publish in Developer Blog Content Board Feb 6, 2024
@justintadlock
Copy link

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/

@justintadlock justintadlock moved this from Ready to publish to Published (Done) in Developer Blog Content Board Feb 6, 2024
@bph
Copy link
Collaborator Author

bph commented Feb 13, 2024

scheduled on social for 2/29 or so.

@bhdd
Copy link

bhdd commented Jun 19, 2024

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Published (Done)
Development

No branches or pull requests

4 participants