Try to add the following PHP code snippet to the child theme functions.php file to disable this option and not output any Custom JS code on your website.
add_filter(
'woodmart_option',
function ( $opt, $slug ) {
if ( in_array( $slug, array( 'custom_js', 'js_ready' ), true ) ) {
$opt = '';
}
return $opt;
},
10,
2
);
To hide this field, you can also edit the file wp-content\themes\woodmart\inc\classes\class-theme.php and remove this line
'admin/settings/custom-js',
also edit this file wp-content\themes\woodmart\inc\admin\settings\sections.php and remove the following code
/**
* Custom JS section.
*/
Options::add_section(
array(
'id' => 'custom_js',
'name' => esc_html__( 'Custom JS', 'woodmart' ),
'priority' => 190,
'icon' => 'xts-i-file-code-js',
)
);