Title: slider callbacks
Last modified: August 31, 2016

---

# slider callbacks

 *  [Matys1001](https://wordpress.org/support/users/matys1001/)
 * (@matys1001)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/slider-callbacks/)
 * Hey, is it possible to use callbacks not in the master slider tab panel ?
 * I would like to use api.gotoSlide(4); after clicking on specific button on my
   page. So how can I achieve that ?
 * [https://wordpress.org/plugins/master-slider/](https://wordpress.org/plugins/master-slider/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [Matys1001](https://wordpress.org/support/users/matys1001/)
 * (@matys1001)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/slider-callbacks/#post-7031801)
 * ok nvm, I tried to use callback tabs with on slider init ,but that didnt work,
   it semms only on slide change start works.
 *  [Averta Support](https://wordpress.org/support/users/averta-support/)
 * (@averta-support)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/slider-callbacks/#post-7032053)
 * Hi,
    You can try it via this function:
 *     ```
       masterslider_instances[0].api.gotoSlide(4);   // moves to 4th slide.
       ```
   
 * You can read more about api in below link:
    [http://docs.averta.net/display/mswpdoc/Slider+APIs+and+Callbacks](http://docs.averta.net/display/mswpdoc/Slider+APIs+and+Callbacks)
 * Regards,
    Averta Support
 *  Thread Starter [Matys1001](https://wordpress.org/support/users/matys1001/)
 * (@matys1001)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-callbacks/#post-7032130)
 * there is nothing about api in that link, only the callbacks…
    and this fucntion
   u provided, seems to not to work.
 *  Thread Starter [Matys1001](https://wordpress.org/support/users/matys1001/)
 * (@matys1001)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-callbacks/#post-7032133)
 * I’ve found something in some docs like that
 *     ```
       var slider = new MasterSlider();
       		slider.setup('5' , {width:800, height:350});
   
       		slider.api.gotoSlide(4)
       ```
   
 * but it says Cannot read property ‘options’ of undefined
    or it says Cannot read
   property ‘gotoSlide’ of undefined
 *  [Averta Support](https://wordpress.org/support/users/averta-support/)
 * (@averta-support)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/slider-callbacks/#post-7032148)
 * Hi,
    The code that we mentioned above must be run on “onClick” event button.
 * Regards
    Averta support

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘slider callbacks’ is closed to new replies.

 * ![](https://ps.w.org/master-slider/assets/icon-256x256.png?rev=1638064)
 * [Master Slider - Responsive Touch Slider](https://wordpress.org/plugins/master-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/master-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/master-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/master-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/master-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/master-slider/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Averta Support](https://wordpress.org/support/users/averta-support/)
 * Last activity: [10 years, 3 months ago](https://wordpress.org/support/topic/slider-callbacks/#post-7032148)
 * Status: not resolved