slideshow autoplay not working

Winnovo
New Member
4 0 0

Hi,

I have a slideshow section on my site and have it set to autoplay,

but the autoplay function didn't work.

Can someone please help to check what might be the problem is?

the site link: https://winnovo.myshopify.com/

0 Likes
g33kgirl
Shopify Partner
223 59 75

There's JavaScript conflict errors on your website. Probably better to get it fixed and your slides will autoplay.

If you found my answer helpful, please LIKE and ACCEPT.
buymeacoffee.com/g33kgirl ☕
If you're not comfortable with code, please modify code files at your own risk.
Do NOT give out your passwords unless absolutely necessary.
0 Likes
Winnovo
New Member
4 0 0

Hi,

I noticed that the conflict seems to happen between jquery and flickity, so I check the code and found this may be related to.

I am not familiar with coding, can you check if the problem happens in this code and tell me how to fix it? Thank you.

 

 
<script>
$( document ).ready(function() {
$('.carousel-main').flickity({
  contain: true,
  pageDots: false,
  prevNextButtons: false,
});
$('.carousel-main').on( 'settle.flickity', function() {
  newTarg = jQuery(".carousel-cell.flex-video").not('.is-selected');
  $(newTarg).find('iframe').each(function() { 
        var src=$(this).attr('src');
        $(this).attr('src',src);  
});
  console.log('slide changes');  
});
});
  </script>
0 Likes