Title: Pause / play button
Last modified: March 6, 2020

---

# Pause / play button

 *  Resolved [casparsmits](https://wordpress.org/support/users/casparsmits/)
 * (@casparsmits)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/stop-pause-button/)
 * Hello everyone,
 * I’m trying to find out how to add a pause/play button to the Anything Slider.
   I have it on autoplay and it shows the arrows, but I’d like users to pause the
   slider when they want to. Does anyone know how I can do that?
 * Best,
    Caspar
    -  This topic was modified 6 years, 1 month ago by [casparsmits](https://wordpress.org/support/users/casparsmits/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstop-pause-button%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [simonpedge](https://wordpress.org/support/users/simonpedge/)
 * (@simonpedge)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/stop-pause-button/#post-12518618)
 * Hi Caspar,
    Have a look at the Owl Carousel documentation for provided **events**:
   [https://owlcarousel2.github.io/OwlCarousel2/docs/api-events.html](https://owlcarousel2.github.io/OwlCarousel2/docs/api-events.html)
 * So looking at the **AutoPlay** events, I think you would use JavaScript like 
   the following:
 *     ```
       var owl = jQuery('#SLIDER_ID');
       jQuery('#BUTTON_PLAY').click(function() {
           owl.trigger('play.owl.autoplay');
       })
       jQuery('#BUTTON_STOP').click(function() {
           owl.trigger('stop.owl.autoplay');
       })
       ```
   
 * You will need to replace the CSS IDs above for ‘#SLIDER_ID’ (the CSS ID of your
   slider, ‘#BUTTON_PLAY’ and ‘#BUTTON_STOP’, which will be the CSS IDs assigned
   to 2 button elements on your page.
 *  Thread Starter [casparsmits](https://wordpress.org/support/users/casparsmits/)
 * (@casparsmits)
 * [6 years ago](https://wordpress.org/support/topic/stop-pause-button/#post-12574019)
 * Hi Simon,
 * Thank you so much for your help! This worked perfectly. I made one button that
   pauses and plays using the Autoplay events you provided.
 * Best,
    Caspar

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

The topic ‘Pause / play button’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/slide-anything.svg)
 * [Slide Anything - Responsive Content / HTML Slider and Carousel](https://wordpress.org/plugins/slide-anything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slide-anything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slide-anything/)
 * [Active Topics](https://wordpress.org/support/plugin/slide-anything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slide-anything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slide-anything/reviews/)

## Tags

 * [control](https://wordpress.org/support/topic-tag/control/)
 * [pause](https://wordpress.org/support/topic-tag/pause/)
 * [stop](https://wordpress.org/support/topic-tag/stop/)

 * 2 replies
 * 2 participants
 * Last reply from: [casparsmits](https://wordpress.org/support/users/casparsmits/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/stop-pause-button/#post-12574019)
 * Status: resolved