Title: Conditional Loading and Thumbnail navigation?
Last modified: August 20, 2016

---

# Conditional Loading and Thumbnail navigation?

 *  [flick](https://wordpress.org/support/users/mosey/)
 * (@mosey)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/)
 * Thanks for bringing out this amazing plugin 🙂 Love how easy it is to config 
   using the shortcode settings.
 * I have two questions that I hope you might be able to help with:
 * 1. Conditional Loading – I have dequeue’d and re-enqueue’d the script and CSS
   files so that they don’t load on all pages. Is it possible for this to be native
   to the plugin so it only triggers in the presence of a shortcode?
 * 2. Thumbnail navigation (controlNavThumbs) – Am trying to get my head around 
   how this works; for some reason, even though I set it to ‘true’ or ‘nextgen_thumbs’,
   it doesn’t seem to make a difference – the thumbnails aren’t showing up. Is this
   meant to work out of the box or should I also be editing some CSS?
 * Thanks in advance!
 * [http://wordpress.org/extend/plugins/nextgen-nivoslider/](http://wordpress.org/extend/plugins/nextgen-nivoslider/)

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [Aldert Vaandering](https://wordpress.org/support/users/paperfeed/)
 * (@paperfeed)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623079)
 * Hey flick, I’m looking into adding the conditional loading right now.
 * I’ve never tried using the nextgen_thumbs option yet, since it’s a leftover option
   from the previous plugin. I’ll see if I can get it to work and update as necessary!
 * I’ll get back to you once I’ve figured it out！ I’m still getting used to WordPress
   development, so my code is very likely to be full of inefficiencies. Thanks for
   pointing these two out!
 *  Thread Starter [flick](https://wordpress.org/support/users/mosey/)
 * (@mosey)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623088)
 * Hi Aldert
 * Thanks for your quick reply 🙂 Am just really glad that you decided to continue
   the plugin development as it is a very useful complement to NextGen. I only wish
   I were really good at that side of things.
 * Conditional loading would be so helpful as Nivoslider is already responsive so
   that’s already a tick in my box.
 * I would be happy to test out any beta versions if you think it might be helpful.
 *  Thread Starter [flick](https://wordpress.org/support/users/mosey/)
 * (@mosey)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623094)
 * p/s: I was just reading the documentation on the Nivo slider website and realised
   that v3 upwards changes the way it detects and loads thumbnails:
 * [http://support.dev7studios.com/articles/nivo-slider-jquery-plugin/using-thumbnails-with-the-nivo-slider](http://support.dev7studios.com/articles/nivo-slider-jquery-plugin/using-thumbnails-with-the-nivo-slider)
 * It now uses the data-thumb attribute instead of rel or searchandreplace:
 * `<div id="slider"><img src="images/up.jpg" alt="" data-thumb="images/up_thumb.
   jpg" /> <img src="images/monstersinc.jpg" alt="" data-thumb="images/monstersinc_thumb.
   jpg" /> <img src="images/nemo.jpg" alt="" data-thumb="images/nemo_thumb.jpg" /
   > <img src="images/walle.jpg" alt="" data-thumb="images/walle_thumb.jpg" /> </
   div>`
 *  [faridjame](https://wordpress.org/support/users/faridjame/)
 * (@faridjame)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623160)
 * I was able to fix the thumbnail issue by changing line 601 of ngg_nivoslider.
   php to this:
 * `$output .= "\" " . $image_description . " border=\"0\" class=\"nivo_image\" 
   data-thumb=\"" . $image->thumbURL . "\" alt=\"nivo slider image\" />";`
 * and in css,
    `.nivo_slider_controlNavImages .nivo-controlNav{visibility: visible;}`
 *  Thread Starter [flick](https://wordpress.org/support/users/mosey/)
 * (@mosey)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623161)
 * Thanks for the share faridjame 😀 I haven’t had a chance to try it out yet but
   hope Aldert will find it helpful.
 *  Plugin Author [Aldert Vaandering](https://wordpress.org/support/users/paperfeed/)
 * (@paperfeed)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623162)
 * Haha wow, what a coincidence. Just as I’m working on the plugin! I’ll have the
   update out this evening/tomorrow morning (depending on whether I don’t run upon
   any bugs). I cleaned up the code a bit and added conditional loading as well,
   so hopefully everything will work correctly!
 *  Plugin Author [Aldert Vaandering](https://wordpress.org/support/users/paperfeed/)
 * (@paperfeed)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623164)
 * Okay I uploaded the release candidate. Feel free to test it out! From preliminary
   tests it seems to be working.
 * Next I want to add built-in theme support, but that’s for the next version.
 * Changelog for this version:
    = 3.2.2 = * Added: More options to the widget configuration
   panel (resizing, background color selection, width and height) * Added: randomStart,
   prevText and nextText options to NivoSlider settings * Added: caption [“alttext”
   |”description”|”both”] * Changed: The script is now only loaded when necessary(
   eg. when the shortcode/widget has been used on the page) * Changed: Cleaned up
   code * Fixed: Thumbnail navigation now works correctly
 * You can get it from [http://wordpress.org/extend/plugins/nextgen-nivoslider/developers/](http://wordpress.org/extend/plugins/nextgen-nivoslider/developers/)
   by downloading the “developer version”
 * If it doesn’t break anything I’ll upload it officially later.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Conditional Loading and Thumbnail navigation?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/nextgen-nivoslider_9ca09b.svg)
 * [NextGen NivoSlider](https://wordpress.org/plugins/nextgen-nivoslider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-nivoslider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-nivoslider/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-nivoslider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-nivoslider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-nivoslider/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Aldert Vaandering](https://wordpress.org/support/users/paperfeed/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/conditional-loading-and-thumbnail-navigation/#post-3623164)
 * Status: not a support question