• Resolved synth3tk

    (@synth3tk)


    The slider does not appear in any way (shortcode, PHP code, etc), even when using one of the example sliders to test. When looking at my source code, the slider is actually on the page, and the images all exist, but for whatever reason it doesn’t show up at all.

    I also get the following error in my console whenever the plugin is activated:

    Uncaught ReferenceError: jQuery is not defined

    https://www.ads-software.com/plugins/master-slider/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter synth3tk

    (@synth3tk)

    As it turns out, one of the most popular starter themes at this time (Underscores) doesn’t load jQuery by default.

    For those future time-travellers, add the following to your functions.php file:

    /**
     * Add jquery support
     */
    function jquery_scripts() {
         wp_enqueue_script( 'jquery' );
    }
    add_action( 'wp_enqueue_scripts', 'jquery_scripts' );

    If you already have a section for scripts (like the Underscores theme), just add wp_enqueue_script( 'jquery' ); to your existing *_scripts() block.

    Plugin Author averta

    (@averta)

    Hi

    Thanks for sharing

    Good luck

    OH this worked for me too! Thanks for sharing!

    Thanks!

    Thank you a lot synth3tk, this was my problem!

    Thanks synth3tk! This worked for me just now too. Oddly, I’m running the Genesis framework on a WPMU site. The slider shows on one of the sites but not the other. The only difference is an alternate child theme used. Adding the call into the child theme’s function.php resolved it. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Slider doesn't appear’ is closed to new replies.