a custom js script becomes a print out of source code !
-
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.
The link is correctly expressed in the source but it contains no javascript.
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.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘a custom js script becomes a print out of source code !’ is closed to new replies.