Is WordPress plugin for SplideJS
you know, making wordpress fast is hard sometimes. we can create custom sliders without bullshit for a "real" dynamic slider. but, it's not easy for somebody. in this position, i've tried that create an alternative slider for wordpress for that. i've used SplideJS and i like it really. i hope you like it too.
look SplideJS documentation for that.
- you must define a class if you want to use multiple slider in same page.
- this plugin is working with shortcodes. so, you need to use our
shortcode for displaying slider in your website. slider's shortcode
is
[g_slider]
. - slider has custom parameters for customizations. for filtering categories, you need to find them ids and use it like that:
[g_slider category="1,2,3,4"]
. category parameter is using "category__and" parameter in get_posts function. so, your content will be filtered in "both of" these categories. if you type one category, slider will display contents in one category, of course. - other parameters are SplideJS's parameters. look at that documentation and feel free to try.
- an example shortcode with SplideJS's parameters is something like that;
[g_slider category="2" autoplay="true" perpage=3 permove=2 lazyload="true" direction="ttb"]
- if you want to use default slider, use shortcode without parameters like that;
[g_slider category="2"]
for making plugin fast, i don't use an external css file for that. all css code is in shortcode.php
. i wrote them all inline.