wp_enqueue_script does not work
Based on your description that you “created a front-page.php and added the following” and also that there is markup in that file, you are hooking too late. You should be both registering and enqueueing on wp_enqueue_scripts but that isn’t the problem here. The problem is that by the time you try to hook, the hooks … Read more