Shopify themes, liquid, logos, and UX
Hi, how can I add a feature so that when someone taps on the image in the slideshow, it immediately switches to the next one? Is that somehow possible?
Want it mainly for mobile, but it can also works on desktop.
Here’s my store: https://creationwithtim.com/products/cinematiq-lut-collection-copy
(Just scroll all the way down to find the slideshow section)
Thanks,
Tim
Hi,
Hope this will help
- Find Slideshow File (something like slideshow.liquid or main-slideshow.liquid.)
- Add a Tap/Click Script
Script example
<script>
document.addEventListener('DOMContentLoaded', function () {
// Select the slideshow container (adjust the selector to match your theme)
const slideshow = document.querySelector('.slideshow'); // You may need to change this!
if (slideshow) {
slideshow.addEventListener('click', function () {
const nextButton = slideshow.querySelector('.slick-next, .swiper-button-next'); // works for Slick or Swiper
if (nextButton) {
nextButton.click(); // Go to next slide when clicked/tapped
}
});
}
});
</script>
- Adjust Selector (Important)
Thank a lot buddy! Appreciate your help
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025