如何在Avada子主题函数中覆盖Fusion Element容器?

Hi I am trying to change the way Fusion Builder container works. I want to add more custom fields, change the display html and the default variables. I need to override the /plugin/fusion-builder/shorcode/fusion-container.php

I am using a child theme of avada. What is the correct way to override it?

Just right after I posted the question, I got the answer in GitHub: https://github.com/Theme-Fusion/Fusion-Builder-Sample-Add-On/issues/34

The solution is to add to the functions.php in your child template the following code:

/**
 * Filter already set maps, add in a new option to container.
 */
function filter_available_element( $fusion_builder_elements ) {
    if ( isset( $fusion_builder_elements['fusion_builder_container'] ) ) {
        $fusion_builder_elements['fusion_builder_container']['params'][] = array(
            'type'        => 'radio_button_set',
            'heading'     => esc_attr__( 'Container Design Mode', 'fusion-builder' ),
            'description' => esc_attr__( 'Controls whether the container should be dark or light.', 'fusion-builder' ),
            'param_name'  => 'container_mode',
            'value'       => array(
                'light' => esc_attr__( 'Light', 'fusion-builder' ),
                'dark'  => esc_attr__( 'Dark', 'fusion-builder' ),
            ),
            'default'     => 'light',
            'group'       => esc_attr__( 'Design', 'fusion-builder' ),
        );
    }
    return $fusion_builder_elements;
}
add_filter( 'fusion_builder_all_elements', 'filter_available_element' );

/**
 * Filter the parameters, check for container_mode and if set add to class parameter.
 */
function filter_container_parameters( $out, $pairs, $atts, $shortcode ) {

    // If set, use it, otherwise set to default.
    $out['container_mode'] = isset( $atts['container_mode'] ) ? $atts['container_mode'] : 'light';

    // Set to class parameter which container already has and uses.
    if ( ! isset( $out['class'] ) || '' === $out['class'] ) {
        $out['class'] = 'my-class-' . $out['container_mode'];
    } else {
        $out['class'] .= ' my-class-' . $out['container_mode'];
    }
    return $out;
}
add_filter( 'shortcode_atts_fusion_builder_container', 'filter_container_parameters', 10, 4 );