block-options
block-options copied to clipboard
Add Margin and Padding settings to core WP Blocks
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 :)
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 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!
cool, thanks for the tip!
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?