I'm trying to create a child theme based on Toolbox 1.4 by Automattic.
I have my scripts file saved as
child_theme/js/scripts.js on my server and I enqueue it by using
wp_enqueue_script( 'scripts', get_stylesheet_directory_uri() . '/js/scripts.js', array('jquery') );
When I view source in Firefox, I see the href to the stylesheet as
and the href to the scripts as
When I click on both, I can see the source of my
style.css, but it says "Page not found" for my
I've never created a child theme before. I used to just copy a theme and modify it. What am I doing wrong?
It works when I move
scripts.js out of the
/js/ subdirectory into the child theme's root directory and change the
wp_enequeue_script. So what is wrong?