Hi,
How do I get the homepage slideshow to start automatically but stop when it gets to the last slide?
Thanks
Mark :)
Hi,
How do I get the homepage slideshow to start automatically but stop when it gets to the last slide?
Thanks
Mark :)
I'm not familiar with the aviapoly2 slider code and the following solution may not work but try following - replace:
if(target === slider.count){ target = 0; }
with:
if(target === slider.count){
target = 0;
methods.pause_slider(slider);
}Thanks!
I'm just using the default slider - would you know which file I should change?
:)
I think it's the includes/helper-slideshow.php file, but I'm really not sure what I need to change?
Thanks for any help!
Mark :)
Hi!
Oops..I'm sorry - I forgotto mention which file you need to edit :)
The code is located in choices\js\aviapoly2.js
Best regards,
Peter
Thanks! :)
Is that the right file even if I'm just using default fader slier and not the aviapoly slider settings?
Rgds
Mark
OK - tried it and it works regardless of which slider you're using!
Just one thing, the code you provided stops the slider once it goes around and gets to the first slide again. I n order to stop it on the last slide I had to change -
if(target === slider.count){
target = 0;
methods.pause_slider(slider);
}
to
if(target === slider.count){
target = slider.count - 1;
methods.pause_slider(slider);
}
Thanks!
Rgds
Mark
Hey!
Glad that it worked :)
Yes, the aviapoly2 is used for all slideshows - regardless of the effect, etc.
Regards,
Peter
You must log in to post.