I built this flyout contact panel. It worked fine until I put it into my WordPress site, then it refused to work at all. Here’s what it’s supposed to do:
I found that if I put jQuery(document).ready at the beginning, it started working, but now it won’t close! When you hit the close button, it just re-opens. In fact, I’ve noticed that anywhere you click on the page causes it to re-open. See demo here:
Hopefully this is simple to fix! Any help is appreciated. Thanks!
You need:
See: http://jsfiddle.net/DcRHh/2/
Or you can use the shorthand as pointed out by Fabricio. Although I would stick with jQuery over $ inside WordPress, unless you know what you are doing when it comes to avoiding conflict with other scripts.