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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Separator / Divider”, insert it. Category: Layout.
- Configure inspector controls that exist on this block. Open Divider. Set “Type”, “Dot Spacing (px)”, “Width (%)”, “Margin Top (px)”.
- Publish. Save the page. Output is the saved block HTML; typography/colors follow Blockenberg shared panels.
Inspector controls from this block’s code
| Control | What the code does |
|---|---|
| Type | Select 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`. |
| Centrepiece | Select control; the chosen value is saved on the block. Options: None; Icon; Text. block.json default: none. Saved as `middleType`. |
| Position | Select 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 — Icon | Select 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`. |
| Shape | Select 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
- Decorative divider: line, wave, zigzag or dot pattern, optionally with an icon or text in the centre — that is the job of Separator / Divider, not a generic content block.
- Use it when you need the editor control labeled “Type”, which exists on this block’s inspector.
- It matches pages about separator, divider, line.
- Inserter grouping: page structure, sections, and composition.
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
Shape Divider
SVG shape dividers — wave, curve, triangle, tilt, zigzag — to create seamless section transitions.
Bento Grid
Modern asymmetric bento-box grid with featured large cells and smaller detail cards — perfect for showcasing features, stats, or portfolio highlights.
Breadcrumbs
SEO-friendly navigation trail with Schema.org markup showing the current page hierarchy.
Content Menu
In-page anchor navigation that highlights the current section as the user scrolls — can float fixed on the left or right, or sit inline.
Dark Hero
Dark glassmorphism hero for AI, SaaS and tech sites. Features glow effects, gradient text, optional floating stat badges, badge pill, and rich button controls.
Gradient Hero
Full landing page hero with animated gradient/mesh background, badge, headline, CTA buttons, and social proof row.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Separator / Divider from the Gutenberg inserter.