user3191160 user3191160 - 2 months ago 14
jQuery Question

How to Pause Responsive Slides in Shopify

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.

Answer

You need to close responsiveSlides

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