Shopify themes, liquid, logos, and UX
Hi,
No need for external library for slideshow. Just copy paste the code - link the video description. No app needed as well. Buttons were updated
Just put your Swiper initialisation code in the window load event and it should work.
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.
Yes I did in Dawn theme no problem.
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.).
Hope I helped 🙂
Got it - thanks BenjB!
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!
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024