Data Attributes JSON Object
-
Hi mate!
First of all I would like to thank you for this awesome plugin, really cool!
But I have 1 question. I’m trying to use your plugin to set the settings for the Slick Slider trough the data-attribute ‘data-slick’. (Here you can see how this works: https://kenwheeler.github.io/slick/).
So I’m adding the following data-attribute to my Post Template core/block: ‘data-slick’. And I insert the following code inside the input field: {“slidesToShow”: 4, “slidesToScroll”: 4}.
On frontend this results in:
data-slick="{"slidesToShow": 4, "slidesToScroll": 4}"
I tried all different kind of settings, but I can’t get it working.
Could you please help?
Thanks already!
Kind Regards, Nick
- The topic ‘Data Attributes JSON Object’ is closed to new replies.