Uncaught SyntaxError: missing ) after argument list [duplicate]

You have the same error repeated on each script. Look at the attribute delimiters. They start using double quotes, then switch: <script src=”https://…js’ defer onload='”> ^ ^ Should be: <script src=”https://…js” defer onload=””> The first single quote I’ve marked, ends the enclosing string. That’s not invalid, but not what is intended. Everything after that point … Read more

Theme path of WordPress inside javascript file

You don’t seem to have a trigger for your JS. You can test that the script is actually running by adding a quick console, such as console.log(‘xyz.js is running’); Once you’re sure your JS is running, you can add a trigger. If you’re already loading jQuery, it has an easy .ready() function to use, but … Read more