[Plugin: NextGEN Gallery] NGG Slideshow – Enable PREV / NEXT
-
NEXTGEN SLIDESHOW ENABLE PREV/NEXT BUTTONS
Plugin: NEXTGEN Gallery 1.9.3 WordPress Plugins
Tan Worawut (24 May 2012)
======================================
1. Enable jquery cycle to ALL mode.
————————————–
EDIT: /nggallery.phpLine: 364 – Remark this line.
//wp_register_script(‘jquery-cycle’, NGGALLERY_URLPATH .’js/jquery.cycle.all.min.js’, array(‘jquery’), ‘2.9995’);Insert this line.
wp_register_script(‘jquery-cycle’, NGGALLERY_URLPATH .’js/jquery.cycle.all.js’, array(‘jquery’), ‘2.9995’);======================================
2. Assign STYLE ID to PREV/NEXT.
————————————–
EDIT: /js/jquery.cycle.all.jsLine 993: next: ‘#next’,
Line 1002: prev: ‘#prev’,======================================
3. Disable default NEXT function in NGG slide script.
(Move forward after clicked on image)
————————————–
EDIT: /js/ngg.slideshow.min.jsDELETE “next:obj,” FROM BELOW CODE:
s.timeout,next:obj,before:FINAL:
s.timeout,before======================================
4. Add button scripts
————————————–
EDIT: /nggfunctions.php [LINE: 136]AFTER:
$out .= “\n”.'</script>’;BEFORE:
return $out;ADD THESE LINES:
/*** SHOW PREV/NEXT BUTTONS START ***/
$out .= ‘<style>.but {padding:5px;background:#ccc;font-size:10px;margin-right:10px;}</style>’;
$out .= ‘<div class=”nav”>’;
$out .= ‘Previous‘;
$out .= ‘Next‘;
$out .= ‘</div>’;
/*** SHOW PREV/NEXT BUTTONS END ***/======================================
-
Thanks Tan! Great job!
Wow looks cool – I’ll have to try this. Thanks Kayla!
$out .= ‘< a class=”prev but”>Previous< /a>’;
$out .= ‘< a class=”next but”>Next< /a>’;I just implemented this and there is an error in step two. Should be this:
2. Assign STYLE ID to PREV/NEXT.
————————————–
EDIT: /js/jquery.cycle.all.jsLine 993: next: ‘.next’,
Line 1002: prev: ‘.prev’,======================================
Thanks for the instructions though 🙂
Worked fine for me! Thanks a lot.
Now I am having another issue: I NEED to add bullets to mi slideshow!
Any ideas?
I managed to add the bullets or selectors by using http://wordpress.org/extend/plugins/wunderslider-gallery/
Dos not work with NEXTGEN Gallery 1.9.10
Doesn’t work for me neither.
Any chance for an updated code?
The topic ‘[Plugin: NextGEN Gallery] NGG Slideshow – Enable PREV / NEXT’ is closed to new replies.