How to override javascript files in a child theme?
Add to your functions.php file the following code:
<?php
// hook in late to make sure the parent theme's registration
// has fired so you can undo it. Otherwise the parent will simply
// enqueue its script anyway.
add_action('wp_enqueue_scripts', 'wpse26822_script_fix', 100);
function wpse26822_script_fix()
{ wp_dequeue_script('parent_theme_script_handle');
wp_enqueue_script('child_theme_script_handle',
get_stylesheet_directory_uri().'/scripts/yourjs.js', array('jquery'));
}
?>
Put a screenshot.png file in the new folder.
Override any theme file you want, like index.php, page.php, etc.
Pay attention! The functions.php file will be added, not overridden!
So, just create a functions.php file with additions and functions you want to override, don’t make a copy of the whole orginal file!
Pay attention! Don’t forget to switch the theme to the new child theme!