Title: Can I trigger a slide change with Javascript?
Last modified: September 14, 2020

---

# Can I trigger a slide change with Javascript?

 *  Resolved [camb416](https://wordpress.org/support/users/camb416/)
 * (@camb416)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/can-i-trigger-a-slide-change-with-javascript/)
 * Hi!
 * Loving Gutenslider, but I’m being asked to create a custom tab-like UI that updates
   when the slider rotates, but is also clickable, triggering the Gutenslider to
   move.
 * I’ve got it working for the UI to update based on reading which slide has the“
   active” class, but I don’t have a good way of triggering the slide change from
   my UI…
 * Right now, I’m enabling the pips, and having javascript call a `click()` on them.
   The problem is that on smaller screens, the screen automatically scrolls down,
   which feels very broken. If there’s a way to disbale that feature, it would sort
   me out as well.
 * Likely a better solution would be to hook into a public method within Gutenslider
   to trigger the change. Does something like that exist?
 * Thanks a million!

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

 *  Plugin Author [eedee](https://wordpress.org/support/users/eedee/)
 * (@eedee)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/can-i-trigger-a-slide-change-with-javascript/#post-13407383)
 * hey [@camb416](https://wordpress.org/support/users/camb416/),
 * yes you can achive that but I never did it. Gutenslider is using slick slider
   and you can surely find online resources telling you how to write a function 
   to move to next/previous slides. You can also get the slider instance from js
   for sure.
 * please understand that we cannot support more for free users, as many requests
   reach us weekly. support us and us supporting you by buying a license.
 *  Plugin Author [eedee](https://wordpress.org/support/users/eedee/)
 * (@eedee)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/can-i-trigger-a-slide-change-with-javascript/#post-13424771)
 * any updates [@camb416](https://wordpress.org/support/users/camb416/)? otherwise
   I will close this issue
 *  Plugin Author [eedee](https://wordpress.org/support/users/eedee/)
 * (@eedee)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/can-i-trigger-a-slide-change-with-javascript/#post-13434287)
 * closed

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

The topic ‘Can I trigger a slide change with Javascript?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/gutenslider_814abc.svg)
 * [WordPress Slider Block Gutenslider](https://wordpress.org/plugins/gutenslider/)
 * [Support Threads](https://wordpress.org/support/plugin/gutenslider/)
 * [Active Topics](https://wordpress.org/support/plugin/gutenslider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/gutenslider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/gutenslider/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [eedee](https://wordpress.org/support/users/eedee/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/can-i-trigger-a-slide-change-with-javascript/#post-13434287)
 * Status: resolved