If you try to use jQuery and WordPress together you gonna have a bad time… Unless… you read this small solution :-)

Your console shows you “$ is not a function” and your code just won’t work…

<strong>Change all the $’s to jQuery</strong>

The dollarsign in WordPress is reserved for Prototype. This causes the error. You have to change all your dollarsigns to the word jQuery.
Example:

$("#testButton").click(function(){
alert("Some Message");
});

 

Change it to

jQuery("#testButton").click(function(){
alert("Some Message");
});

 

That’s all, good luck with it! :-)