I’m trying to load my jQuery script through using wp_enqueue_script.
I’ve checked the syntax etc.
What happens is this :
When I inspect the source code of my page I find that there is indeed a link to my script.
However the script contains the html source code of the page ! including parts of the loop that aren’t being used.
I have only had this problem since 3.11 – it is a script that works on my theme at the moment – the live site has not been updated to 3.11 because on my local installation I have been having problems.
What am I to do ? Any hints or solutions welcome.
- The topic ‘a custom js script becomes a print out of source code !’ is closed to new replies.