Edit File by line
/home/barbar84/www/wp-conte.../themes/Divi/includes/builder/module/field
File: MarginPadding.php
$margin_key = "{$label}_custom_margin";
[500] Fix | Delete
$padding_key = "{$label}_custom_padding";
[501] Fix | Delete
$multi_view = et_pb_multi_view_options( $module );
[502] Fix | Delete
[503] Fix | Delete
$has_margin = '' !== $utils->array_get( $all_values, $margin_key, '' );
[504] Fix | Delete
$has_padding = '' !== $utils->array_get( $all_values, $padding_key, '' );
[505] Fix | Delete
$has_margin_hover = $multi_view->hover_is_enabled( $margin_key );
[506] Fix | Delete
$has_padding_hover = $multi_view->hover_is_enabled( $padding_key );
[507] Fix | Delete
[508] Fix | Delete
if ( $has_margin || $has_padding || $has_margin_hover || $has_padding_hover ) {
[509] Fix | Delete
$settings = $utils->array_get( $form_field, 'margin_padding', array() );
[510] Fix | Delete
[511] Fix | Delete
// Ensure main selector exists.
[512] Fix | Delete
$form_field_margin_padding_css = $utils->array_get( $settings, 'css.main', '' );
[513] Fix | Delete
if ( empty( $form_field_margin_padding_css ) ) {
[514] Fix | Delete
$utils->array_set( $settings, 'css.main', $utils->array_get( $form_field, 'css.main', '' ) );
[515] Fix | Delete
}
[516] Fix | Delete
[517] Fix | Delete
$this->update_styles( $module, $label, $settings, $function_name, $advanced_field );
[518] Fix | Delete
}
[519] Fix | Delete
}
[520] Fix | Delete
}
[521] Fix | Delete
}
[522] Fix | Delete
}
[523] Fix | Delete
[524] Fix | Delete
return new ET_Builder_Module_Field_MarginPadding();
[525] Fix | Delete
[526] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function