Hi,
I am having some problems trying to add a rotating div showing testimonials on a static Wordpress home page. Firebug returns the error $ is not a function.
Totally out of ideas and could do with some help.
Here briefly is the markup:
<section class="testimonials">
<ul id="testimonials">
<li class="slide">
<blockquote>Some Info etc.</blockquote>
</li>
<li class="slide" style="display:none">
<blockquote>Some Info etc.</blockquote>
</li>
<li class="slide" style="display:none">
<blockquote>Some Info etc.</blockquote>
</li>
<ul>
</section>
And the script…
$(document).ready(function(){
$('#testimonials .slide');
setInterval(function(){
$('#testimonials .slide').filter(':visible').fadeOut(1000,function(){
if($(this).next('li.slide').size()){
$(this).next().fadeIn(1000);
}
else{
$('#testimonials .slide').eq(0).fadeIn(1000);
}
});
},10000);
});
Wordpress automatically loads the jquery library and the other script is being called too but I get an error for some reason. I’m no good at debugging, really stuck.
Your help is most appreciated.
Thanks in advance