I created a new folder (js) and put the script in a file named custom_script.js
I put the below in the header, and now the images are even showing at all….??
<?php
function my_scripts_method() {
wp_enqueue_script(
'custom-script',
get_template_directory_uri() . '/js/custom_script.js',
array( 'jquery' )
);
}
add_action( 'wp_enqueue_scripts', 'my_scripts_method' );
?>