I inserted a jquery slider in magento (flexslider) but it wont load-Collection of common programming errors
Try putting this code within the tag instead of within the body maybe.
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});
Also, make sure you have a tag which loads up jQuery and you also have the .js file for the flexslider defined and loaded, as well as the .css file for the flexslider loaded, preferrably in the head, before you call upon the above code.
Be sure that you have jQuery loaded… The example uses this for jQuery, so I suggest you use the same:
Put that in your head tag, above the code that initializes the flexslider.
So, between these 2 tags and you should have something like this:
$(window).load(function() {
$('.flexslider').flexslider({
animation: "slide"
});
});