$w slideshow buttons

I’m trying to create 3 buttons on a slider so that when clicked the user will be brought to that page slide. I’m using the code
export function executiveButton_click() { $w(‘slideshow1’).changeSlide(0); }
export function managementButton_click() { $w(‘slideshow1’).changeSlide(1); }
export function repButton_click() { $w(‘slideshow1’).changeSlide(2); }

The executive (1) and rep (3) buttons dont work and when i click management (2) it works once and then stops. I’m writing the code on the page code and have also tried the site code but neither appears to work…any suggestions ? thanks

Hey Stephen, could you send a link to your site so that we can check it out? the code itself seems right so I’d need to take a look to better understand.

Thank you so much for your quick reply Ayelet. The site is still under construction but you can view the issue https://www.bathurst-international.com/solutions its the second section down