/**
* Spacer
*
* @since 1.3.0
* Use the shortcode: [spacer class="css-class-name" height="30px"]
* Note: Since the space size uses an inline style your css class may have to use an !important
*/
function cmms_spacer_shortcode( $atts ) {
// Attributes
extract (shortcode_atts(
array(
'class' => '',
'height' => '30px',
),
$atts));
return '<div class="'.$class.'" style="height: '.$height.'"></div>';
}
add_shortcode( 'spacer', 'cmms_spacer_shortcode' );