If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
hi i like to have the accordion slider stop after showing every picture one time.
is ths possible?
to be more precise – i have the autorotation active but i like to stop it after one cycle.
I’m not sure if it can be set to stop after a single cycle or not. I’ve tagged another of the support crew who should be able to give a definite answer one way or another.
This is a bit of a hacky solution but it will work without an error.
Please open up /js/aviacordion-dev.js and find lines 303-306 that look like
data.slides.filter(':eq('+(index - 1)+')').trigger("mouseleave."+ pluginNameSpace);
index = 0;
firstrun = true;
and add two slashes in front of each of those lines so that it will look like this:
//data.slides.filter(':eq('+(index - 1)+')').trigger("mouseleave."+ pluginNameSpace);
//index = 0;
//firstrun = true;
That’s it. I tested it and works fine. On the last slide it pauses.
i need one step more – at the end every picture should have the same space, so everything looks like before the autorotation has started.
i achieved this by playing around with the slashes and the simple solution is that you only need to put 2 of them infront of line 304 which is responsible for the index.
The topic ‘disable endless repeat of accordion slider’ is closed to new replies.