Trying to use JQuery Easing plugin in my wordpress but its giving me following error (firebug)
c.easing[this.options.specialEasing && this.options.specialEasing[this.prop] || a] is not a function
I have included JQuery 1.4.2 and after doing some googling have included addeded even jquery.easing.compatibility.js along with jquery.easing.1.3.js but still the problem is there.
Can any one let me know what might be the issue.As an additional note i am also using fancybox so have following js included in my code
jquery.mousewheel-3.0.4.pack.js
jquery.fancybox-1.3.4.pack.js
Hers is the code i am using
<script type='text/javascript'>
$(document).ready(function() {
function anim(duration){
$('#mint').animate(
{height: 'toggle'},
{duration: duration, specialEasing: {height: 'easeOutBounce'}}
);
}
$('#closebtn').click(function() {
$('#mintbar').slideUp();
anim(800);
});
$('#mint').click(function() {
anim(500);
$('#mintbar').slideDown('slow','easeOutBounce');
});
});
If you say it works standalone but not with WordPress then it’s probably because you’re in
noConflictmode so you need to usejQueryinstead of its shortcut,$. Instead of$('#mint'), dojQuery('#mint'). Same for every other jQuery object.How are you including jQuery in WordPress anyway? It already comes bundled with it. If you’re attaching your own version, you need to do it the proper way. Every other script should be loaded in
functions.phptoo, and not in the header.In functions.php