The maker of a WordPress theme that clearly already incorporates JavaScript has suggested that I enqueue the script. The format for such an edit to functions.php appears in this article in TutsPlus.
So here’s what I’m trying:
<?php
function load_hype() {
wp_register_script( 'woofhomepage_hype_generated_script.js', content_url('/woofhomepage.hyperesources/woofhomepage_hype_generated_script.js').'/HYPE-526.full.min.js'__FILE__) );
wp_enqueue_script('woofhomepage_hype_generated_script.js');
}
add_action('init', 'load_hype');
?>
…and it’s crashing the whole site.
Any clue what I’m doing wrong?
Here’s the site in question, at which I’ve returned a default photo and h1.