Welcome to the Liquify Community

Updated 3 weeks ago

Swiper JS Bug

This is not a Liquify realted Bug, its a general Bug with Swiper js. When I only have 2 Items in a Slider, the Loops doesn´t really work. But On bigger screens it doesn´t even work if I have 4 items selected. Does somebody know why?

Here the Code, a Demo Video and the Attributes the Slider is using.
Attachment
image.png
j
c
3 comments
Hi @consti, we also have the same problem.
The only solution we found was creating an addition element which also loops over the same elements again.
{% for. blocks in sections.block %} {% if block.type == "your block name" %} Block Content {% endif %} {% endfor %}
I just duplicated the Slider Item and then it worked, but I wasn‘t sure if there will be some bugs. But thankyou, I will add that
we also do it the sam way 🙂
Add a reply
Sign up and join the conversation on Discord