Skip to content

Divider Shortcode

Oliver Juhas edited this page Jun 22, 2017 · 3 revisions

Info

Displays a divider horizontal line or empty space. Separates elements vertically.


Example

[wm_divider appearance="double-line" space_before="100" space_after="100" /]

Parameters

Please note that you can omit parameters with empty values when writing the shortcode.

Parameter Type Value example    Description
appearance predefined dashed, dotted, double-line, line or whitespace This actually depends on the styles your theme supports, but usually the example values are supported. whitespace will not display a line, just a gap, an empty space. All other values are related to divider line style.
class string my-class Adds a custom CSS class(es) onto shortcode wrapper.
space_after integer 0, 120, or even - The space size in pixels. If you set -, the theme's default value is used.
space_before integer 0, 120, or even - The space size in pixels. If you set -, the theme's default value is used.

Compatibility

Please, make sure your theme supports this shortcode, before using it.
Some themes may not be compatible with certain shortcodes as they may use different approach to displaying similar elements. In that case the shortcode is displays in its raw code format on your website front-end.