How do I add spacing to a grid using the block editor?
-
I’m trying to find the right combination of group blocks to create a layout where I have a central column divided in three sub-columns for object (text, image, etc) placement, plus another two columns on each side that are part of the central 3, so objects can be placed on the side orbiting something in the main columns so they go up and down with it. I knew I wouldn’t know how to explain, ✓ (check,) so I made a quick rough sketch of it. It’s linked below.
I managed to get it using
Columnsbut it wasn’t pretty, much less efficient since whenever I’d need a “satellite” I would need a newColumnsblock—which of course I cheated by simply duplicating it and deleting theParagraphblocks or whatever it had in it.▽ Columns
▽ Column
Paragraph
Paragraph
▽ Column
ImageThis ended off-center, thought I could disguise it with the images I’m creating as I go— It’s a lot of custom work that would make no sense the moment I change themes, color scheme or something (I’m using Twenty Twenty-Five, BTW. No plugins.)
Then, I tried the
Gridblock, and I’m okay making adjustments to each contained block to set the its column/row span within the grid, but, since I want two side columns to flank the main three, they would be empty for the most part and the grid automatically tries to fill them. They need some empty calories. I tried filling the leftmost column with a spacer block set to span enough, and it worked, except when an object filling all 5 columns (edge-to-edge) interrupted it. I couldn’t make it, or rather another continue down. The rightmost side is even more confusing, both sides because grid spaces fill voids so it gets even more complicated in mobile.If two or more multi-column blocks don’t fit perfectly in the gird, blanks are indeed left in it, I don’t know if
Spacerblocks spanning >10 rows would be inserted in there since column-wise they fit. Specially after a five-column break.It occurred to me making the central column using a given type of containers blocks, wrapped into another type of container blocks, with yet another type of container blocks on each side, that’s more or less:
▽ Container
▽ Container (left padding, sat space)
▽ Container (horizontal distribution)
Media asset
▽ Container (central)
▽ Container (possibly columns parent)
▽ Container (then each column…)
Paragraph column 1 of 2
▽ Container
Paragraph column 2 of 2
▽ Container
Media asset
▽ Container (right padding, sat space)
▽ Container (horizontal distribution)
Media assetBut then I realized they would be disconnected from the center, how would they track the content to move up and down with it?
A little help, please?? See the picture, it will make more sense than I do.
Thanks!
View post on imgur.com
The topic ‘How do I add spacing to a grid using the block editor?’ is closed to new replies.