Crocoblock: Slider (Listing grid) disable pause on hover
Thu Nov 02 2023 08:08:29 GMT+0000 (Coordinated Universal Time)
Saved by
@banch3v
<script> jQuery(document).ready( () => { setTimeout( () => { jQuery('.slick-slider').slick("slickSetOption", "pauseOnHover", false, true) }, 10); }); </script>
This will stop ALL the sliders on the page, if you want to target only a certain one: add a class "slider-top" to your listing grid and then change the code to:
<script> jQuery(document).ready( () => { setTimeout( () => { jQuery('.slider-top .slick-slider').slick("slickSetOption", "pauseOnHover", false, true) }, 10); }); </script>
content_copyCOPY
Comments