Title: API
Last modified: August 31, 2016

---

# API

 *  Resolved [nadike37](https://wordpress.org/support/users/nadike37/)
 * (@nadike37)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/api-36/)
 * Hi,
    In my website that use wordpress I have installed your plugin -Accordion
   Slider Lite- that has the autoplay feature enabled. In one of the scenarios I
   have an iframe (for youtube embed) displayed instead of the Accordion Slider (
   the slider is not shown but runs in the background). When the video ends or if
   I click a button that ends the video in the iframe should close and Accordion
   Slider is shown. When the Accordion Slider is shown the opened slide has width
   =0px instead to be normal, but if I click on a slider or I am waiting 5seconds(
   for autoplay) the Accordion Slider works ok. Do you think it is a bug or I can
   solved it with the API. Another question that I have is: if I click on an opened
   slider all the sliders takes the same width and I do not want this behavior. 
   I want nothing to happened if I click on an opened slider. Is this possible if
   I am using the API? With the API or pro version can I programmatically open the
   desired slide and can I prevent a slide from closing if I click on it?
 * PS: Is the API available in the Lite version also or is available only for the
   paid version?
 * [https://wordpress.org/plugins/accordion-slider-lite/](https://wordpress.org/plugins/accordion-slider-lite/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [bqworks](https://wordpress.org/support/users/bqworks/)
 * (@bqworks)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/api-36/#post-7111286)
 * Hi,
 * You can solve this with the API. You can call jQuery(‘.accordion-slider’).accordionSlider(‘
   resize’) to resize the accordion to the correct size.
 * If you’ve set the ‘Open Panel On’ option to ‘Click’, then the you can’t chose
   not to close it back on click. If you set it to ‘Hover’, then it won’t close 
   on click. You can also programatically open panels with this call jQuery(‘.accordion-
   slider’).accordionSlider(‘openPanel’, index);
 * Cheers.

Viewing 1 replies (of 1 total)

The topic ‘API’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accordion-slider-lite_e9e4dc.svg)
 * [Accordion Slider Lite](https://wordpress.org/plugins/accordion-slider-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accordion-slider-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accordion-slider-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/accordion-slider-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accordion-slider-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accordion-slider-lite/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 1 reply
 * 2 participants
 * Last reply from: [bqworks](https://wordpress.org/support/users/bqworks/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/api-36/#post-7111286)
 * Status: resolved