Okay
  Print

Adding Custom JS code in Child Theme [Browser resize code added to Toggle VC Element]

<?php 

add_action( 'wp_enqueue_scripts', 'salient_child_enqueue_styles');
function salient_child_enqueue_styles() {
    
    wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css', array('font-awesome'));

    if ( is_rtl() ) 
           wp_enqueue_style(  'salient-rtl',  get_template_directory_uri(). '/rtl.css', array(), '1', 'screen' );
}

function add_toggle_resize_script(){
?>
<script type='text/javascript'>

jQuery( document ).ready(function() {

jQuery('body').on('mouseup','.toggle h3 a', function(){
setTimeout(function(){ jQuery(window).trigger('resize'); },300);
        
});
  
});
</script>
<?php
}
add_action('wp_footer', 'add_toggle_resize_script');
?>