Dannyholt
12/19/2017 - 11:13 PM

Add all directions i.e. top, right, bottom & left for margins in Global Settings (Builder UI)

Add all directions i.e. top, right, bottom & left for margins in Global Settings (Builder UI)

<?php // Do not copy this

function my_builder_register_settings_form( $form, $id ) {
    
    if ( 'global' == $id ) {        
        $form['tabs']['general']['sections']['rows']['fields']['row_margins'] = array(
            'type'        => 'dimension',
            'responsive'        => true,
            'label'       => __( 'Margins', 'fl-builder' ),
            'description' => 'px',
            'preview'     => array(
                'type' => 'none',
            ),
        );
    }
    
    return $form;
}
add_filter( 'fl_builder_register_settings_form', 'my_builder_register_settings_form', 10, 2 );