Open tyrann0us opened 8 years ago
Would be cool to see a solution for this. Really like your plugin and the idea of using the standard gallery.
Asked in the wp.org forum for a current solution (or tip) for this :) wp.org plugin forum
Having responsive options adjustable using the UI is in the works, but unfortunately without ETA.
I posted a possible workaround in the thread, pasted here for completeness:
The easiest way to accomplish this is to use slick’s slickSetOption
method.
Enqueue a JS file which uses slick-slider-core
as $deps
:
jQuery( document ).ready( function() {
jQuery( '.slick-slider-wrapper .slick-slider' ).slick( 'setOption', 'responsive', [
{
breakpoint: 480,
settings: {
slidesToShow: 1,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
}
},
{
breakpoint: 992,
settings: {
slidesToShow: 4,
}
},
],
true
)
} )
Adjust the selector, breakpoints and settings to your specific needs.
Use Underscore templates for HTML rendering?