admin管理员组文章数量:1416050
I am having trouble on my wordpress site, my nivo slider will not load the banner images and display them.
I'm pretty sure its to do with jquery been loaded somewhere else, but i just dont know.
Could some one look at my website, css-signs.ie and inspect the error
here is the error
Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
I am having trouble on my wordpress site, my nivo slider will not load the banner images and display them.
I'm pretty sure its to do with jquery been loaded somewhere else, but i just dont know.
Could some one look at my website, css-signs.ie and inspect the error
here is the error
Uncaught TypeError: Property '$' of object [object DOMWindow] is not a function
Share
Improve this question
asked Nov 25, 2011 at 18:19
mollemanmolleman
2,95616 gold badges62 silver badges94 bronze badges
1 Answer
Reset to default 6The dollar sign is not an alias for jQuery on your page. Wrap the code block starting at line 467 in jquery.nivo.slider.js with a jQuery ready function setting the '$' as an alias within the function block, like this:
jQuery(function($) {
$(window).load(function() {
$('#sliderNivo').nivoSlider({
effect:$nivo_slider_effect,
slices:15,
animSpeed:500,
pauseTime:$nivo_slider_speed,
keyboardNav:false,
pauseOnHover:true
});
});
});
See more info on using jQuery with other libraries.
本文标签: phpUncaught TypeError with jQuery and WordpressStack Overflow
版权声明:本文标题:php - Uncaught TypeError with jQuery and Wordpress? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745247463a2649621.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论