NextGEN Gallery
Jquery doesn't load after removing jquery.cycle.all.min.js and ngg.sl (2 posts)

  1. benwake
    Posted 4 years ago #

    Hi everyone,

    I don't use the slideshow feature of the plugin and my site is working perfectly without ngg.slideshow.min.js and jquery.cycle.all.min.js
    But when I remove this code

    // required for the slideshow
            if ( NGGALLERY_IREXIST == true && $this->options['enableIR'] == '1' && nggGallery::detect_mobile_phone() === false )
                wp_enqueue_script('swfobject', NGGALLERY_URLPATH .'admin/js/swfobject.js', FALSE, '2.2');
            else {
                wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');
                wp_enqueue_script('ngg-slideshow', NGGALLERY_URLPATH .'js/ngg.slideshow.min.js', array('jquery-cycle'), '1.05'); 

    from the nggallery.php, the Jquery isn't loading anymore.

    What does

    wp_register_script('jquery-cycle', NGGALLERY_URLPATH .'js/jquery.cycle.all.min.js', array('jquery'), '2.88');

    do to not make my jquery loading?


  2. Randy
    Posted 4 years ago #

    Variable 3 = array('jquery') loads jquery before the specified scrip is loaded, so unless jquery is being called by some other scirpt than you'll be missing jquery all together.

    There may be other factors involved, but hope that helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.