While working with your WordPress site, you might sometimes feel something is missing – something that’s making your design a bit off-putting. You’ll often find a subtle change in the design brings a significant change in terms of having a better outlook.
Lines are such simple elements that might be a quick hack to improve your design. They can be used to separate sections, emphasize key areas, or create a structured layout that’s easy for visitors to navigate.
This guide will walk you through the most practical methods to add and style horizontal and vertical lines in WordPress. No matter your skill level, you’ll find an approach that works for your needs and transforms your site’s layout into something more polished and professional.
Method 1: Using the ‘Separator’ Block
Your first task is to open the specific page or post where you plan to add the line. Then, navigate to the exact place you want to add the line.

Click the Block Inserter + button to add a block, and then search for “Separator” in the block library. Click on it to insert it to your page. A horizontal line will appear in the editor by default. Keep in mind that the line’s appearance may vary depending on the theme you’re using.

Now select the block and open the block settings in the right sidebar. Choose your preferred style (Solid, Dashed, or Dotted).

Lastly, select a custom color to highlight your line differently.

Method 2: Using the Divider Block by Ultimate Blocks
If you haven’t already, you need to install the Ultimate Blocks plugin from the WordPress plugin directory and activate it.

Later, open the WordPress editor and click the + button to add a block. Now, search for “Divider” and insert it into your page.

In the block settings on the right sidebar, select whether you want the line to be Horizontal or Vertical. For a vertical line, ensure you choose the ‘Vertical’ option.

You can also adjust the line’s thickness, height, and width using the general settings.

If you move to the Styles settings, you can choose from three different line types. After that, all that remains is to customize the color to match your site’s theme.

Once you’re happy with the adjustments, your divider is ready to go.
Conclusion
Lines might seem like a minor detail to the untrained eye, but if you can use them properly, they will have a big impact on how your site looks and feels. Whether you use the Separator block for quick horizontal dividers or the Divider block by Ultimate Blocks for more customizable options, you can be sure that adding lines can help create a clean and structured design.
With the methods in this guide, you now have everything you need to include horizontal and vertical lines into your WordPress pages effectively.
Start experimenting today and see how these simple elements can transform your website into something more polished and professional!