Alternatively, when I put script tags just above my closing body tag (https://prntscr.com/nkm9ww), my console claims that $ is not a function (https://prntscr.com/nkma5r), which means it loads before the jQuery CDN of the parent theme I assume?
My website file structure looks like this: https://prntscr.com/nkmaqc
So what am I overlooking here? Why is my javascript file not loading properly?
]]>Screenshots of code samples are the worst way to ask for support. It doesn’t help you or anyone when you do that. Try sharing the code samples using https://pastebin.com/ instead.
Which theme is that and where did you download it from? If you can provide that information then it will help get you to the right place.
]]>@jdembowski The theme I’m using is WP Bootstrap StarterVersie: 3.1.0, which is to be found on the WP Repository.
My code in functions.php: https://pastebin.com/P2Ew7hmT
My code in script.js: https://pastebin.com/SeYR8mRB
wp_enqueue_script( 'myscript', get_template_directory_uri() . '/js/script.js', array('jquery') );