Did you ever get Swiper.js to work in the Dawn theme? I’m trying to build a slider in Dawn and the markup comes out perfectly but Swiper isn’t working like it should.
I’m wondering if I should try a different solution?
Having the exact same issue as BenEight (above) - the script is being loaded correctly, the markup is valid, and Swiper is being initialized successfully, yet all placing all of my slides are being bundled into one slide.
Note: this happens even when I copy/paste the exact demo code from swiperjs.com, so I know it’s not an unclosed div or something.
If you import Swiper CSS and JS in theme.liquid, if the parent div of your Swiper slider html code doesnt have a CSS flex position, and if you initialize a new Swiper instance in a JS load event, then it should work without any issues.
If you’re still facing issues, that means that something is wrong in your code, but not related to Shopify (check markup, differents swipers having the same classname, css, js code, etc.).
Hi BenjB !
Are you part of Swiper team? Thanks so much! its such a great tool
I suceeded in creating a customizable section with it! But my issue is that the script would require extra identificators when trying to use more than one swiper per page. I tried using {{section.id}}, but no luck… thought my JS level is quite basic, so maybe I didnt did it properly. Any Idea? Many, many thanks!