• Resolved anon2694

    (@anon2694)


    I’ve installed wordpress locally using xampp and I’ve converted a website for a client into a wordpress theme. After activating the theme, I get the following error:

    Parse error: syntax error, unexpected token “function” in /Applications/XAMPP/xamppfiles/htdocs/wp-content/themes/AquhaHeat WP Final/functions.php on line 218

    This error is referencing where I’ve enqueued js files in functions.php and seems to affect all the functions that I’ve written to enqueue various javascript files. There’s no errors for enqueuing css files.

    Here’s the specific function starting on line 218 that error is refering too:

    // Amination JS START
    
    function load_jsam() {
        wp_register_script('load_jsam', get_template_directory_uri() . 'js/animations/js/animations.min.js', array(), false, true);
        wp_enqueue_script('load_jsam');
    }
    
    add_action('wp_enqueue_scripts', 'load_jsam')
    
    // Amination JS END

    Any ideas? Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘syntax error, unexpected token’ is closed to new replies.