unable to link javascript with script tag.
-
Hello all.
i put this in the footer (had also tried the head)<script src="<?php echo get_template_directory_uri(); ?>/myJs.js"></script>
just to start testing out and practicing javascript
but i get this error message in the console (using chrome)http://localhost/site_a/wp-content/themes/twentyfourteen/myJs.js 404 (Not Found)
Am using a child theme of 2014.I don’t want to enque the script yet.
and this should work. What am i doing wrong please?Thank you
D
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘unable to link javascript with script tag.’ is closed to new replies.