• Resolved joshbrad

    (@joshbrad)


    When I set the option for a carousel to true the plugin stops working.

    With my other plugins active, it returns this error with nothing showing on screen:

    Uncaught TypeError: $self.find(...).sbi_owlCarousel is not a function
        at sb-instagram.js?ver=2.5.1:2106

    When I disable every plugin except for the Instagram plugin I get this with a continuously spinning loader:

    Uncaught ReferenceError: jQuery is not defined
        at sb-instagram.js?ver=2.5.1:49

    However, jQuery 1.4.1 is installed and active on my theme according to this message:

    JQMIGRATE: Migrate is installed, version 1.4.1

    What’s happening?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter joshbrad

    (@joshbrad)

    Should also mention this is on https://grownrogue.staging.wpengine.com/

    Thread Starter joshbrad

    (@joshbrad)

    UPDATE: I forgot to mention that the standard view for this plugin (without carousel) works perfectly.

    I also updated jQuery to 3.0.0. Still no luck.

    Thread Starter joshbrad

    (@joshbrad)

    Figured it out. The developer who made my theme was loading jQuery in the footer, not through WordPress’s enqueue scripts function. For those who find this, try adding this to your functions.php file:

    function include_custom_jquery() {
      wp_deregister_script('jquery');
      wp_enqueue_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/3.0.0/jquery.min.js', array(), null, true);
    }
    add_action('wp_enqueue_scripts', 'include_custom_jquery');
    Plugin Author Craig at Smash Balloon

    (@craig-at-smash-balloon)

    Thanks joshbrad!

    Glad you could get this working now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Carousel Not Working’ is closed to new replies.