• Hello everyone,
    i have some trouble with my metaslider.
    it runs on my localhost but this is the failing code:
    $('#metaslider_156').flexslider({
    slideshowSpeed:3000,
    animation:”slide”,
    controlNav:false,
    directionNav:false,
    pauseOnHover:true,
    direction:”vertical”,
    reverse:false,
    animationSpeed:300,
    prevText:”<“,
    nextText:”>”,
    easing:”linear”,
    slideshow:true
    });

    AND
    var slider = !window.jQuery ? window.setTimeout(timer_metaslider_156, 100) : !jQuery.isReady ? window.setTimeout(timer_metaslider_156, 1) : metaslider_156(window.jQuery);
    the backticks centences are wrong
    this is the notification with google chrome:Uncaught TypeError: $(...).flexslider is not a function
    I hope someone know the answer!

    greets, Rik

Viewing 4 replies - 1 through 4 (of 4 total)
  • thebigtine

    (@josephbydesign)

    when posting code on the forum put it between backticks. It makes it easier to read.

    This means that jQuery is not defined so you just need to figure out why it’s not defined. Loading it twice is not a good thing.

    You should only need to load jQuery once, and make sure it’s loaded before this script is.

    Other than that you could try replacing $ with the actual text jQuery.

    jQuery(window).load(function($) {

    Or you could try wrapping it in an anonymous function

    (function($) {
    
    })(jQuery);

    Thread Starter rnelisse

    (@rnelisse)

    In which document do i need to be to change that?

    your flexslider script add between this functions.

    jQuery(window).load(function($) {
    
    // your scripts hear
    
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to get my metaslide slide’ is closed to new replies.