Layout · Gutenberg

Separator / Divider block for WordPress

Decorative divider: line, wave, zigzag or dot pattern, optionally with an icon or text in the centre.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

Decorative divider: line, wave, zigzag or dot pattern, optionally with an icon or text in the centre.

Inspector panels on this block: Divider, Layout, Centrepiece. Those titles come from index.js, not from a shared template.

Behavior controls: “Type” options: Line, Dashed, Dotted, Double, Triple; “Centrepiece” options: None, Icon, Text; “Position” options: Left, Center, Right; “Centrepiece — Icon” options: Star, Heart, Diamond, Bolt, Moon.

Separator / Divider has no render.php and no frontend.js. The saved Gutenberg HTML is what visitors see, plus Blockenberg layout/typography CSS.

Where to find it

Gutenberg inserter → Layout → search “Separator / Divider” (block name `blockenberg/separator` in block.json). Style it in the sidebar after insert.

How to use Separator / Divider block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Separator / Divider”, insert it. Category: Layout.
  3. Configure inspector controls that exist on this block. Open Divider. Set “Type”, “Dot Spacing (px)”, “Width (%)”, “Margin Top (px)”.
  4. Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.

Inspector controls from this block’s code

ControlWhat the code does
TypeSelect control; the chosen value is saved on the block. Options: Line; Dashed; Dotted; Double; Triple; Gradient; Dots; Wave; Zigzag; Scallop. block.json default: line. Saved as `dividerType`.
Dot Spacing (px)Numeric range control in the inspector. Range 4–60. block.json default: 14. Saved as `dotSpacing`.
Width (%)Numeric range control in the inspector. Range 10–100. block.json default: 100. Saved as `widthPercent`.
Margin Top (px)Numeric range control in the inspector. Range 0–120. block.json default: 24. Saved as `marginTop`.
Margin Bottom (px)Numeric range control in the inspector. Range 0–120. block.json default: 24. Saved as `marginBottom`.
CentrepieceSelect control; the chosen value is saved on the block. Options: None; Icon; Text. block.json default: none. Saved as `middleType`.
PositionSelect control; the chosen value is saved on the block. Options: Left; Center; Right. block.json default: center. Saved as `middlePosition`.
Gap around centrepiece (px)Numeric range control in the inspector. Range 0–60. block.json default: 16. Saved as `gapAroundMiddle`.
Centrepiece — IconSelect control; the chosen value is saved on the block. Options: Star; Heart; Diamond; Bolt; Moon; 8-Point Star; Cross (+); Leaf; Snowflake; Circle. block.json default: star. Saved as `iconName`.
Icon Size (px)Numeric range control in the inspector. Range 12–80. block.json default: 20. Saved as `iconSize`.
ShapeSelect control; the chosen value is saved on the block. Options: None; Circle; Square. block.json default: none. Saved as `iconBgShape`.
Background Size (px)Numeric range control in the inspector. block.json default: 36. Saved as `iconBgSize`.
Padding Horizontal (px)Numeric range control in the inspector. Range 0–48. block.json default: 12. Saved as `textPaddingH`.
Padding Vertical (px)Numeric range control in the inspector. Range 0–32. block.json default: 4. Saved as `textPaddingV`.
Border Radius (px)Numeric range control in the inspector. Range 0–50. block.json default: 4. Saved as `textRadius`.

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Separator / Divider block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Separator / Divider”. It sits under Layout. After insert, open Divider and set “Type”, “Dot Spacing (px)”, “Width (%)”, “Margin Top (px)”.

What makes Separator / Divider different from other Blockenberg blocks?

Decorative divider: line, wave, zigzag or dot pattern, optionally with an icon or text in the centre. Inspector labels on this block include “Type”, “Dot Spacing (px)”, “Width (%)”, “Margin Top (px)”.

Is the Separator / Divider Gutenberg block free?

Yes. Separator / Divider ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Separator / Divider to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Divider, Layout, Centrepiece).

Related layout blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Separator / Divider from the Gutenberg inserter.

Get Blockenberg