Divider Shortcode

Last Updated on

A great way to organize page content is to use divider/separator lines. The divider shortcode allows you to insert different kinds of dividers between the page contents.

Divider Shortcode - demo

To see the Divider shortcode in action, check out the demo page.

In this article


Displaying a Divider

To add a divider:

1
Add a new page or edit an existing page.

2
From the Visual Composer screen, click on the + button.

Divider Shortcode - visual composer section
3
In the Add Element pop-up screen, search for Divider and click on it to be added to the page.

Divider Shortcode - add element
4
When the shortcode is added, a new pop-up screen called Divider Settings will open that allows to configure the shortcode settings.


5
Click on Save Changes and publish or update the page to check the result.


Configuring the Design

To change the divider style:

There are two types of settings to configure the design: Predefined Design and Design Properties.

Setting Description
Predefined Design The predefined design of the separator line.
Design Properties Settings like color, width, padding and so on which customize the specific styling of the separator.
1
Click on Edit Divider to open the Divider settings pop-up.

2
From the Divider Orientation setting, select one of the options: Horizontal, Vertical.
3
From the Style setting, select one of the options: Line, Dotted, Dashed, Thick.

To see a live demo of styles please click here.

4
Click on Save changes.

Customizing the Separator Predefined Design

There are a few settings in the divider settings pop-up to customize the default styling.

Setting Description
Divider Color Changes the color of the divider.
Divider Width Sets the width of the divider. Available options are: Full Width, One Half, One Third, One Fourth, Custom Width.
Divider Custom Width This option will be available if you set the Divider Width to Custom Width. Use this option to set the width of the divider. Value is in pixels.
Divider Align Sets the alignment of the divider. The option is available only for Custom Width setting.
Divider Thickness Sets the divider thickness.
Padding Top Creates empty space above the divider.
Padding Bottom Creates empty space below the divider.
x
Note: If you need to go beyond the default settings to customize the look and feel of the item’s design, you can add a custom CSS class in the Extra Class Name setting to be able to add specific styling to this shortcode through CSS. For more information, read the Adding custom CSS class to a shortcode article.

Configuring the Visibility for Devices

To hide/show the divider for a particular device (mobile, tablet, …), there is a setting in the divider pop-up called Visibility For Devices. Using this setting is easy and straightforward but if you need an step-by-step tutorial, read the Configuring a shortcode’s visibility article.

Adding an Extra Class Name

The Extra Class Name field in the settings pop-up allows you to add an extra class name to the shortcode. It’s useful when you need to target the shortcode in a stylesheet or JavaScript file.

You can read the Adding a custom CSS class to a shortcode article for further explanation.

If you have any questions regarding Divider shortcode customization, feel free to contact our support team.

Was this helpful?
Previous Article:
Next Article:

Can't find what you're looking for?

Open New Ticket