WP Manifestindependent plugin directory
manifest / editor / block-margin

Block Margin

A WordPress plugin that adds margin controls to blocks.

by Happy Prime · github.com/happyprime/block-margin · website

3stars
18release downloads
≈10active sites
1forks

Install

The author publishes release zips, so WP-CLI can install straight from GitHub:

wp plugin install https://github.com/happyprime/block-margin/releases/download/0.1.3/block-margin.0.1.3.zip

Declares an update source (false), so updates arrive through the plugin's own updater.

From the readme

Block Margin Block Margin is a WordPress plugin that adds margin controls to blocks. When a margin option is selected, a has-{selected option}-margin-top class is added to the block. Filters A number of filters are provided to afford developers control over which blocks to include the margin controls on and which margin options to make available. blockMargin.excludedBlocks A filter used to control which blocks to exclude the margin controls from. It receives an empty array as an argument - all blocks include the controls by default. This filter should return an array of block names. Here's an example which removes the controls from the core Latest Posts block: blockMargin.controls A filter used to control the options allowed in the controls. It receives an object of default options in the following format as an argument, and should return an object using the same format. Here's an example which removes the Larger option from, and adds a Huge option to, the controls: blockmarginexcludedblocks A PHP filter used to control which server-side blocks to exclude the margin controls from. It receives an empty array as an argument - all blocks include the controls by default. Th

Read the full README on GitHub →

Releases

TagPublishedAssetDownloads
0.1.3May 19, 2025block-margin.0.1.3.zip7
0.1.2Nov 17, 2022block-margin.0.1.2.zip11

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.