Support » Plugin: WordPress Slider Block Gutenslider » Can I trigger a slide change with Javascript?

  • Resolved camb416

    (@camb416)


    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

    (@eedee)

    hey @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

    (@eedee)

    any updates @camb416? otherwise I will close this issue

    Plugin Author eedee

    (@eedee)

    closed

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.