Accordion slider – open an image by default

Please Note: Theme customizations go beyond the scope of our support services and this article is provided solely as a courtesy to our customers. Please take a moment to review the Scope of our Support.

Question:

Is it possible to make the accordion slider open the an image by default when it is initially loaded?

Original poster

Solution:

You have to open the script/accordion-slider.js file and add the following line:

holders[0].obj.find('img').trigger('mouseover');

after line 51:

setEventHandlers();

The 0 value sets the index of the slide image to be opened by default – in this case it will open the first image. To set the third image, for example, you have to set index 2.

Pexeto

Was this useful? 0