Swiper JS - How to call and use #22824
Replies: 2 comments 4 replies
-
you have to either load swiper.js before your code. I'm doing with:
in a custom widget. Or wait with the JS in your code until swiper is loaded |
Beta Was this translation helpful? Give feedback.
-
@m1ga thanks for the help you are a star 👍. I've managed to get it to work in the preview panel by adding:
and added the same register script before 2023-06-19.21-40-18.mp4I am finally a step closer to a product carousel that will use and render the theme woocommerce product loop item style. I use Astra theme for more eCommerce sites as it can be a great base, but you get a lot of carousel product plugins where the design can be inconsistent and sometimes does not honour Woocommerce settings. |
Beta Was this translation helpful? Give feedback.
-
Not sure if anyone knows about Elementor swiper JS library but currently trying to create a plugin that extends the Elementor Pro products widgets so it adds a control to convert it so it is a carousel. Got to a certain point but on the frontend it says the following error:
Below is my plugin code so far if anyone can make heads or tails of this issue:
Custom CSS:
It works OK in the page editor but just not on the frontend.
Beta Was this translation helpful? Give feedback.
All reactions