Code Button to Advance to Next Slide

Hello Wix Fam! Bless you guys for having the capacity to understand code. Could really use some help in figuring out what code to use to tell this button to advance to the next slide. I’ve tried many different variations but all attempts unsuccessful. I just cannot grasp the language smh. This is what it looks like


Any feedback is most appreciated. Thank you so much.

Hi just a thought…from this link on the API reference https://www.wix.com/code/reference/$w.Slideshow.html#next
you can do this.
$w(“#myElement”).next();

What you would do in the editor is the following.

  1. select the READ MORE button that you wanted to use to move the slide show forward.
  2. in the properties panel select the onClick event (hit the little blue + button and it will create an event handler for you after you hit the Enter key)… bonus points for noticing that it is also a clickable link that will bring you straight to the newly create code in the code panel.
  3. add this code to your new handler $w(“#fullWidthSlide3”).next();
  4. it will look something like below

export function button1_click(event, $w) {
//Add your code for this event here:
$w(“#fullWidthSlides3”).next();
}

  1. I based that name on your screenshot…that’s about it. preview it and it should roll.

hope that helps a bit!

I can’t believe I never saw this. The funny thing is I’m working on a project where the same requirement came up and I did a search and my old post came up…with this response!!! Thank you so much! I know its over a year later LOL…