Block Extras

Description

Block extras adds new attributes to many of the default Gutenberg blocks. This allows extra customisation on top of your theme’s CSS, within the parameters you allow.

The plugin uses utility auto-generated CSS classes to add the relevant CSS attribute to your blocks, no inline styles are used.

  • Individual margins (including negative) and padding can be applied to many block types.
  • Typography blocks (paragraphs and headings) can have line height and letter spacing applied.
  • Rounded corners can be applied to groups blocks.

Blocks currently supported

  • core/paragraph – margin, padding, line height, letter spacing
  • core/image – margin, padding
  • core/heading – margin, padding, line height, letter spacing
  • core/gallery – margin
  • core/list – margin, padding
  • core/quote – margin, padding
  • core/table – margin
  • core/group – margin, padding, rounded corners

Screenshots

  • Group block with margins and rounded corners being applied
  • Heading block with line height and letter spacing being applied
  • Gutenberg side panel showing options for a group block - margin, padding and rounded corners
  • Gutenberg side panel showing options for a paragraph block - margin, padding, line height and letter spacing
  • Block extras options screen

Installation

  1. Upload the plugin files to your plugin directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Use the Settings->Block Extras Settings screen to configure the plugin

FAQ

Does this plugin add inline styles?

No, it uses automatically generated classes to achieve the selected options.

Can I customise the stylesheet?

No, the stylesheet is automatically created when changing any block settings.

Can I change how much of an attribute is applied?

You can only apply the minimum, maximum and default settings to an attribute. Individual customisation is not currently possible.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Block Extras” is open source software. The following people have contributed to this plugin.

Contributors

“Block Extras” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Block Extras” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.01

  • Fixed an issue when changing an attribute’s default value where the any blocks with that new default showed a gutenberg unexpected block error

1.0

  • Initial release