How to customize the WordPress separator block: width, thickness, and vertical separator

Vertical separator blocks used as section transition and between columns on a website.

The WordPress separator block is one of those deceptively simple elements that can do a lot more than it first appears. Whether you want a clean separator line to break up a long post, control separator thickness, create a vertical separator, or save your design as a reusable pattern, this guide shows you how to do it all in the WordPress block editor with the extra options available in the Twentig plugin.

What is the WordPress Separator block?

The Separator block creates a horizontal line (an <hr> element by default) between two sections of content. It’s perfect for signaling a shift in topic, separating a header from body copy, or adding a decorative visual rhythm to your page.

To insert one in the block editor, click the Block Inserter (+) and search for Separator. Or type /separator in a new paragraph block and press Enter for a quick shortcut.

Separator markup: <hr> or <div>?

Before customizing your separator, it’s worth understanding the HTML behind it, because it affects accessibility and the semantics of your content.

By default, WordPress renders the Separator block as an <hr> element. The W3C defines <hr> as a paragraph-level thematic break, a signal that the topic or narrative is shifting. If your separator actually serves that purpose, <hr> is the right choice.

But if you’re using the separator purely as a decorative design element, switch to a <div>, which carries no semantic weight. Screen readers won’t announce it unnecessarily, and your HTML will be cleaner. This is especially relevant for vertical separators and purely stylistic lines.

To change the element:

  1. Select your Separator block.
  2. Open the Advanced panel in the block settings sidebar.
  3. Under HTML Element, switch hr to div.
HTML Element option in the Advanced panel of the WordPress Separator block settings, showing div selected.
Switch the HTML element from hr to div for decorative separators.

Customize the WordPress Separator style, width and thickness

Separator styles

WordPress includes three separator styles, though your active theme may enable or disable some of them:

  • Default: a simple horizontal line
  • Wide line: a wider variant
  • Dots: three centered dots

The Twentig plugin adds three more styles to the Separator block:

  • Asterisks: a typographic break with an editorial character
  • Dotted: a lighter, more delicate pattern
  • Dashed: a classic dashed line

All styles work with the WordPress core color and margin controls. In addition, the Default, Dotted, and Dashed styles support Twentig’s width and height options described below.

Control separator width

WordPress gives you three built-in alignment options to control how far the separator stretches across the content area: Default, Wide width, and Full width.

For more precise control, Twentig adds a Width dimension field where you can enter any value and unit, such as 400px, 60%, or 20rem.

Control separator thickness

By default, the thickness of the Separator block is set by your theme, usually to 1px or 2px. With Twentig, you can override this using the Height dimension field, where you can enter any value and unit (px, em, rem, vh).

WordPress Separator block settings sidebar showing styles, color, and dimension options including width and height.
Separator settings sidebar with Twentig’s extra styles, width and height fields.

How to create a WordPress vertical separator

While the Separator block is horizontal by default, you can turn it into a vertical separator in WordPress with just a few settings. This is useful for dividing side-by-side columns or creating a subtle transition between two sections.

With Twentig, creating a vertical separator in WordPress is simple:

  1. Insert a Separator block.
  2. Open the block settings sidebar.
  3. Choose Default, Dotted, or Dashed style.
  4. In the Twentig Height field, set how tall the line should be, for example 100px.
  5. In the Twentig Width field, set how thick the line should be, for example 1px.

That’s all it takes to turn a horizontal separator into a vertical one. Since a vertical separator is typically used as a decorative element, remember to switch the HTML element from <hr> to <div> as described above.

Vertical separator block between a hero image and a text section, with the width set to 1px and height set to 100px.
A vertical separator block used as a transition between a hero image and a text section.

WordPress separator line with text

You can combine the Separator block with a Heading or Paragraph block to create a separator line with a label in the middle. Group them inside a Row block to align them horizontally.

A "Services" heading centered between two horizontal separator lines.
A heading centered between two separator lines.

Here’s a code example to create a centered heading flanked by two horizontal lines:

					
<!-- wp:group {"layout":{"type":"flex","flexWrap":"nowrap"}} -->
<div class="wp-block-group">

  <!-- wp:separator {"style":{"layout":{"selfStretch":"fill","flexSize":null}}} -->
  <hr class="wp-block-separator has-alpha-channel-opacity"/>
  <!-- /wp:separator -->

  <!-- wp:heading -->
  <h2 class="wp-block-heading">Services</h2>
  <!-- /wp:heading -->

  <!-- wp:separator {"style":{"layout":{"selfStretch":"fill","flexSize":null}}} -->
  <hr class="wp-block-separator has-alpha-channel-opacity"/>
  <!-- /wp:separator -->

</div>
<!-- /wp:group -->

You can also remove the left separator to create an asymmetric layout, with the heading anchored to the left and a single line extending to the right.

Add animation to your separator

Twentig adds scroll-triggered animation controls to nearly every core block, including the Separator. You’ll find them in the Animation panel in the block settings sidebar. You can choose from different entrance styles:

  • Fade: the line softly appears as it enters the viewport
  • Wipe: the line draws itself across the screen from one side
  • Scale: the separator scales into view

You can also set the duration and delay of each animation, giving you precise control over pacing and sequencing within a section.

Animation panel showing style, duration, and delay options.
Twentig’s animation panel with style, duration, and delay.

Hide the separator on specific devices

Sometimes a separator only makes sense on certain screen sizes. For example, if you’re using a vertical separator to divide two side-by-side columns on desktop, you’ll want to hide it on mobile when those columns stack vertically.

WordPress responsive visibility controls, available in WordPress 7.0, let you toggle Hide on Desktop, Hide on Tablet, or Hide on Mobile directly from the block toolbar.

"Hide block" modal in the WordPress block editor showing Hide on Desktop, Hide on Tablet, and Hide on Mobile options.
Hide the Separator block on specific devices using WordPress responsive visibility controls.

Save your custom separator as a reusable pattern

If you plan to use the same customized separator across multiple pages or posts, you can save it as a synced pattern. Any update you make to the pattern will automatically apply everywhere it’s used.

Here’s how:

  1. Insert and customize your Separator block.
  2. Click the Options (⋮) button in the block toolbar.
  3. Select Create pattern.
  4. Give it a clear name (you can leave the Category field empty).
  5. Leave the Synced toggle on. This means any future edits to the pattern update every instance across your site automatically.
"Add Pattern" modal in the block editor showing name, categories, and Synced toggle options.
Save your custom separator as a synced pattern to reuse it across your site.

Your saved separator will appear in the block inserter when you search for its name. To edit it later, select any instance and click Edit original in the toolbar.

Block inserter showing a search for "separator" with the Separator block and a "Short Separator" pattern in the results.
Access your saved custom separator directly from the block inserter.

Make the most of the Separator block

The WordPress Separator block may look simple, but it can do much more than add a basic horizontal line. With Twentig’s extra settings, you can adjust its width and thickness, create a vertical separator, add subtle animations, and reuse your custom separator designs across your site as WordPress synced patterns.

Get Twentig for free and unlock more design flexibility for the WordPress Separator block and every other core block.

Diane Collet Avatar

About the author

Start building your website with Twentig. It’s easy and free.

Give back to Twentig

If Twentig helped you build a website, please support us. Every donation makes Twentig better!