What is going to be the proper way to get the slick slider to fire in the Global Footer? It would seem that the javascript is somewhat page code dependent. For example, I have been able to get more than one of the slick slider carousels to fire on the PROD page by creating a new div ID, then copy and editing it as needed. Here is an example of what I added to jsBASK: function
Is having this also in the jsPROD: function the reason it won't fire? How can I made this not dependent upon a Page? My javascript foo is very weak.
Code:
// ---- Other Shoppers Product Carousel ---- // $.ajax({ cache: true, crossDomain: true, dataType: 'script', url: theme_path + '/js/jquery.slick.min.js' }).done(function () { $('#js-othershoppers-products-carousel').slick({ appendArrows: $('#js-othershoppers-products-carousel').prev('.h3'), draggable: false, slidesToScroll: 8, slidesToShow: 8, responsive: [ { breakpoint: 608, settings: { appendArrows: $('#js-othershoppers-products-carousel'), slidesToScroll: 1, slidesToShow: 1 } } ] }); });
Is having this also in the jsPROD: function the reason it won't fire? How can I made this not dependent upon a Page? My javascript foo is very weak.
Comment