Ad

How To Pause Responsive Slides In Shopify

- 1 answer

I am looking to find out, how I can add a pause on hover feature as well as links on the slides within my responsive banners. I have used the following jquery on my site and this works fine as the slides change every couple of seconds.

responsiveslides.com

Now when I edit the following code:

<script>
      $(function() {
        $(".rslides").responsiveSlides();
      });
  </script>

to

<script>
      $(function() {
        $(".rslides").responsiveSlides({
          pause: true
      });
  </script>

but this doesn't work and I am not too sure why.

If somebody could please help.

Ad

Answer

You need to close responsiveSlides

<script>
    $(function() {
        $(".rslides").responsiveSlides({
            pause: true
        });
    });
</script>
Ad
source: stackoverflow.com
Ad