dougllio
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Yes it is working.
I managed to code a workaround. It seems the slider was not getting initialized so I added code to check after 500ms if the slick components were added and if not call the initialization code again. The code is a copy so obviously if there are changes to the plugin, this workaround will need to be updated. Here is the url.
jQuery(function($) { setInterval(function(){ $( '.wcpscwc-product-slider' ).each(function( index ) { var slick = $(this).find('.slick-track'); var slicklength = slick.length; if (slicklength == 0) { var slider_id = $(this).attr('id'); var slider_conf = $.parseJSON( $(this).closest('.wcpscwc-product-slider-wrap').find('.wcpscwc-slider-conf').attr('data-conf')); var slider_cls = slider_conf.slider_cls ? slider_conf.slider_cls : 'products'; jQuery('#'+slider_id+' .'+slider_cls).slick({ ...The original code seemed to always work on Firefox, 50% of the time on Chrome, but almost never on iOS Safari or Epiphany. I am not sure if there are conflicts on the page but the delayed check that I added seems to work for all cases.
Viewing 2 replies - 1 through 2 (of 2 total)