gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Setting for block spacing at template level

Open wwdes opened this issue 2 years ago • 4 comments

What problem does this address?

Unable to control spacing of blocks in the root of a template

root block spacing

In this simple template, I have not found any control in the editor to remove the gap between the header and content block. So I am forced to do this with CSS. Nesting entire template in a group block, just so that I get the controls seems to mess with paddings.

What is your proposed solution?

Add controls to change spacing.

wwdes avatar Jan 26 '24 16:01 wwdes

Hi @wwdes,

I think you can change the space between blocks at the root level in Appearance menu> Editor submenu> Styles button > Layout.

root-block-spacing

t-hamano avatar Jan 27 '24 01:01 t-hamano

Hi @wwdes,

I think you can change the space between blocks at the root level in Appearance menu> Editor submenu> Styles button > Layout.

root-block-spacing

Those settings are global, which means they set default block spacing everywhere. I am talking about a setting that should be available when editing a template. This setting should behave exactly as on group blocks. Basically, what I am saying is that all group blocks have this setting, but templates do not. Why not? Templates behave mostly just like a group block..

wwdes avatar Jan 27 '24 22:01 wwdes

I see. If so, #47637 would be relevant.

t-hamano avatar Jan 28 '24 01:01 t-hamano

Completed with https://github.com/WordPress/gutenberg/pull/54282

wwdes avatar Dec 03 '24 23:12 wwdes