gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

[Query Block] Add a Masonry layout option

Open mrfoxtalbot opened this issue 2 years ago • 8 comments

What problem does this address?

Setting up a multi-column query block layout will generate a lot of empty areas:

Screen Shot on 2022-03-08 at 11:12:59

Masonry layouts are the best way to avoid this and are extremely common in themes...

Screen Shot on 2022-03-08 at 11:13:11

...and in external blocks (Gosign – Masonry Post Block for instance):

Screen Shot on 2022-03-08 at 11:16:36

What is your proposed solution?

I would like to see an option next to the "columns" setting to give the layout a masonry style:

Screen Shot on 2022-03-08 at 11:11:43

There is a related discussion in https://github.com/WordPress/gutenberg/issues/25462

mrfoxtalbot avatar Mar 08 '22 10:03 mrfoxtalbot

I agree this would be a great improvement to the Query loop block :)

davipontesblog avatar Mar 08 '22 12:03 davipontesblog

Related - https://github.com/WordPress/gutenberg/issues/28247#issuecomment-1058734453

glendaviesnz avatar Mar 09 '22 00:03 glendaviesnz

I'm also dying for this to be an option -- I've tried replacing the query block with plugin-based masonry arrays, and they're impossible to work with because they inevitably fail to give you the kind of editing detail you have with the query block itself. this would be a great addition.

palmsout avatar Mar 13 '22 19:03 palmsout

I'm also dying for this to be an option -- I've tried replacing the query block with plugin-based masonry arrays, and they're impossible to work with because they inevitably fail to give you the kind of editing detail you have with the query block itself. this would be a great addition.

I just also want to add, in the event this becomes a feature -- it's essential that there's an option to have the full post content in masonry layout -- all the masonry plugins I've found limit you to post excerpts (and can't properly parse html within the post, like iframes and other blocks within the post content).

palmsout avatar Mar 21 '22 17:03 palmsout

we need a masonry grid loop option, i have many white empty spaces in archives pages, because i use vertical and horizontal images.

linokilo avatar Mar 31 '24 19:03 linokilo

+1

jabeztadesse avatar May 01 '24 03:05 jabeztadesse

What problem does this address?

Setting up a multi-column query block layout will generate a lot of empty areas:

Screen Shot on 2022-03-08 at 11:12:59

Masonry layouts are the best way to avoid this and are extremely common in themes...

Screen Shot on 2022-03-08 at 11:13:11

...and in external blocks (Gosign – Masonry Post Block for instance):

Screen Shot on 2022-03-08 at 11:16:36

What is your proposed solution?

I would like to see an option next to the "columns" setting to give the layout a masonry style:

Screen Shot on 2022-03-08 at 11:11:43

There is a related discussion in #25462

Have you found a solution to this so far?

jabeztadesse avatar May 03 '24 08:05 jabeztadesse

+1 to this one. I'm finding this conversation come up over and over again. One of the biggest benefits of this layout is to allow better flow for posts that have a mix of featured image sizes and posts with and without featured images. https://github.com/WordPress/gutenberg/issues/25462 https://github.com/WordPress/gutenberg/issues/61298

dhanson-wp avatar May 10 '24 14:05 dhanson-wp