How to override JavaScript files in child theme?
Child themes only override php files (like header.php) that are included with functions like get_template_part or get_header, etc. The correct way to add scripts to WordPress is with wp_enqueue_script. If your parent theme uses this, you can override the JS files by using wp_dequeue_script and enqueuing your own. Like so… <?php // hook in late … Read more