Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add responsive support #4

Open
tyrann0us opened this issue Jul 28, 2016 · 2 comments
Open

Add responsive support #4

tyrann0us opened this issue Jul 28, 2016 · 2 comments

Comments

@tyrann0us
Copy link
Owner

tyrann0us commented Jul 28, 2016

Use Underscore templates for HTML rendering?

@tyrann0us tyrann0us self-assigned this Jul 28, 2016
@tyrann0us tyrann0us added this to the 0.3 milestone Oct 7, 2016
@tyrann0us tyrann0us modified the milestone: 0.4 Nov 3, 2016
@tyrann0us tyrann0us modified the milestones: 0.4, 0.5 Dec 15, 2016
@michakrapp
Copy link

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

@tyrann0us
Copy link
Owner Author

tyrann0us commented Mar 22, 2017

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.

@tyrann0us tyrann0us removed this from the 0.5 milestone Sep 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants