Title: [Plugin: NextGEN Gallery] Pause JS Slideshow?
Last modified: August 19, 2016

---

# [Plugin: NextGEN Gallery] Pause JS Slideshow?

 *  [SamyVienna](https://wordpress.org/support/users/samyvienna/)
 * (@samyvienna)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/)
 * Hello Alex,
 * is it possible to pause the JS slideshow? I read in den JQuery-Cycle FAQ that
   there is a function for stoping and resuming the show, but i dont understand 
   how to activate this function?!
 * Would be nice if you can help me!
 * Kind regards, Samy

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

 *  [medinauta](https://wordpress.org/support/users/medinauta/)
 * (@medinauta)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/#post-1711555)
 * 1. open: nggfunctions.php
 * 2. look for:
    ‘timeout:’ . $ngg_options[‘irRotatetime’] * 1000 .
 * 3. Add a line BEFORE the code above and place:
    ‘pause: 1’ .
 * 4. Save and test
 * —–
    To add it to the backend, so it shows in the settings:(after step 1&2) —–
 * 3. Add a line BEFORE the code above and place:
    ‘pause:’ . $ngg_options[‘irPause’].
 * 4. Open the file at \admin\settings.php and find:
    <tr> <th><?php _e(‘Duration
   time’,’nggallery’) ?>:</th> <td><input type=”text” size=”3″ maxlength=”3″ name
   =”irRotatetime” value=”<?php echo $ngg->options[‘irRotatetime’] ?>” /> <?php 
   _e(‘sec.’, ‘nggallery’) ;?></td> </tr>
 * 5. Right after that code place:
    <tr> <th><?php _e(‘Pause’,’nggallery’) ?>:</
   th> <td><input type=”text” size=”3″ maxlength=”3″ name=”irPause” value=”<?php
   echo $ngg->options[‘irPause’] ?>” /> <?php _e(‘0-1. 1 to pause on mouseover’,‘
   nggallery’) ;?></td> </tr> 6. save both files, update and test.
 *  Thread Starter [SamyVienna](https://wordpress.org/support/users/samyvienna/)
 * (@samyvienna)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/#post-1711578)
 * the part with the backend works, but the first part makes the loader run in a
   loop, no images…
 * i also cant activate the function over the backend point, if i put a “1” in the
   box and save, the box is empty again…
 *  [oded17](https://wordpress.org/support/users/oded17/)
 * (@oded17)
 * [15 years ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/#post-1711810)
 * On top of the above, you also need to change the following in settings.php (few
   lines before the ones mentioned in step 4 above):
 * `<input type="hidden" name="page_options" value="slideFx,enableIR,irURL,irWidth,
   irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irWatermark,
   irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,
   irScreencolor,irAudio,irXHTMLvalid" />`
 * To:
 * `<input type="hidden" name="page_options" value="slideFx,enableIR,irURL,irWidth,
   irHeight,irShuffle,irLinkfromdisplay,irShownavigation,irShowicons,irWatermark,
   irOverstretch,irRotatetime,irTransition,irKenburns,irBackcolor,irFrontcolor,irLightcolor,
   irScreencolor,irAudio,irXHTMLvalid,irPause" />`
 * That is, add “irPause” to the list of fields
 *  [aishfak](https://wordpress.org/support/users/aishfak/)
 * (@aishfak)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/#post-1711825)
 * Now at backend when i put “1” in the box and save, the box successful save but
   gallery isn’t stop on mouseover can any one tell what is problem or can any one
   give me javascript or jquery simple code for mouseover to stop image gallery.
 *  [DrunkDwarfUK](https://wordpress.org/support/users/drunkdwarfuk/)
 * (@drunkdwarfuk)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/#post-1711826)
 * $(‘.ngg-slideshow’).cycle(‘pause’);
 * theres also ‘toggle’ and ‘resume’
 * The above JQuery code successfully worked for me. Note that the example is linking
   to the CSS class, you could change this to the ID to be more specific.
 * [http://jquery.malsup.com/cycle/options.html](http://jquery.malsup.com/cycle/options.html)
   <– theres a list of the command strings it’ll accept here.
 * You’ll need to insert this into a JS file somewhere, and take into consideration
   the no-conflict mode of the JQuery included with WordPress (see [http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers)
   for details ).
 * You’ll probably be wanting to link it to a button/link of some kind, so you’ll
   probably need to add some html to the template to link to. You could also create
   the button using JQuery too.

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

The topic ‘[Plugin: NextGEN Gallery] Pause JS Slideshow?’ is closed to new replies.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [DrunkDwarfUK](https://wordpress.org/support/users/drunkdwarfuk/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-nextgen-gallery-pause-js-slideshow/#post-1711826)
 * Status: not resolved