In Project Settings or the page's Footer Code area, insert a script that listens for button clicks.
Use jQuery to target the buttons and, on click, retrieve the data-slide attribute.
Access the slider instance via its class and call its built-in goToSlide method with the target index.
Example inline instructions (adjust as needed):
• On click, use code similar to:
• Select the slider element: var slider = $(".custom-slider")[0].slider;
• Then call slider.goToSlide(targetIndex);
(Remember to ensure your slider library is loaded—Webflow does that automatically.)
Unique IDs on slides won’t work because Webflow’s slider doesn’t natively link DOM IDs to slide positions; using custom attributes and a bit of JavaScript ensures smooth navigation between slider slides.