July 31st, 2013, 05:18 PM
What's wrong with this code? Jfiddle works, my site doesnt.
Here's the jsfiddle:
I have put everything exactly like the jsfiddle in my site:
at the top. I have put the style '.stylechecked' in the css file, as wel as in the css in the header... nothing. What's wrong?
Last edited by wouz; July 31st, 2013 at 05:21 PM.
July 31st, 2013, 05:54 PM
firebug reports you have an illegal character at the end of your script block:
It's some low-byte whitespace character I guess. I think because it's there, the entire block of script is not getting executed.
^ right there
July 31st, 2013, 06:29 PM
Thanks. Deleted it but didnt help.
I also installed firebug, not sure how it works though. I activated it but i dont see any error count, so i guess its clean now?
July 31st, 2013, 06:33 PM
Start up firebug on your website, go to the Console tab, then reload the webpage. Right now I'm getting "TypeError: $ is not a function". Looks like your local jquery copy has a call to $.noConflict() appended to the end of it, so the $ symbol no longer functions as an alias for jQuery.
July 31st, 2013, 06:47 PM
I saw the error now in firebug too, and started a quick search.
Looks like this is common when Wordpress includes it:
So I made the necessary changes and now it works. Thanks so much for your help.