jQuery.easing[jQuery.easing.def] is not a function

Eric Goncalves picture Eric Goncalves · Jul 18, 2012 · Viewed 62.4k times · Source

I am getting below error when I look in the console:

jQuery.easing[jQuery.easing.def] is not a function

I am trying to make a slider on WordPress. I am working on a localhost so I can't exactly show whats up. However, when the slider is just in an HTML file outside of WordPress it works. When in WordPress, it is giving me that error. Any insight into what the problem could be will be greatly appreciated.

Answer

coletrain picture coletrain · May 4, 2013

To save everyone some time. Open your Jquery easing plugin file and wrap the code inside:

$(document).ready(function() {
  Code goes here...
});