block-options icon indicating copy to clipboard operation
block-options copied to clipboard

Add Margin and Padding settings to core WP Blocks

Open shazahm1 opened this issue 5 years ago • 4 comments

Please add the ability to set margin and padding to core WP blocks such as headings and paragraphs. Presently the only way I've found to accomplish this is to use a third part column block, set as one column and use it margin/padding setting, only to add a single paragraph or heading.

I must be the only one ever who used the indent left/right feature in the Classic Editor, lol. Even though buttons were nice, I'd still rather have the option to set margin/padding as a numeric value instead of just a simple button like the Classic Editor.

I would gladly pay for this as a premium addon :)

shazahm1 avatar Feb 12 '20 14:02 shazahm1

I just noticed #238, awesome! That actually meets some of my needs. Although perhaps still adding the possibility of controlling margin/padding on the Group block would be very useful.

shazahm1 avatar Feb 21 '20 20:02 shazahm1

@shazahm1 Thanks! You can use the available utility classes for now. Under Advanced panel, type padding on the Additional CSS Classes option and classes suggestions will automatically show :) Let me know how it goes. Thanks!

phpbits avatar Feb 25 '20 08:02 phpbits

cool, thanks for the tip!

shazahm1 avatar Feb 25 '20 16:02 shazahm1

Just a follow up, this plugin adds the spacing controls to the core block plus a few other niceties not in EditorKit.

  • https://github.com/mighty-blocks/mighty-blocks

Looks like it might already be abandoned though so I will not install it . Might be possibl to pull the spacing code?

shazahm1 avatar Apr 24 '20 18:04 shazahm1