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.
To save everyone some time. Open your Jquery easing plugin file and wrap the code inside:
Please check that whether you are loading jQuery more than once. If you have inserted in the footer manually, try removing it.
The problem is
jQuery in this function could not be equal to the jQuery, where
jQuery.extend( jQuery.easing,
has been applied.jQuery
with$
wrap code with
did you import the jQuery easing plugin? something like
in your page?
try this code on swing() function on easing.js
Put jquery.easing.1.3.js to head tag before using plugin or use document.ready
Don’t declare the script on the header, call it through jQuery’s .getScript() function when the document is fully loaded.
Example:
The error is due to that jQuery is called before easing script it’s fully loaded.
Are you importing the jQuery easing plugin? Or anything higher than 1.7.2?
Then just remove that and use this:
It may happen if you are calling the WordPress slider plugin’s javascript before jQuery or jQuery UI call.
Does it resolve this way?