Replies: 1 comment
-
may help #5839 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using the swiper slide in a wordpress site. I have an anchor tag in the 1st slide. When I click on it, I want the next slide(slide #2) to appear. I tried this code and it doesn't work:
<script> $(document).ready(function() { var mySwiper = $('.swiper-container').swiper(); $('#home-slide-1 .slide-cta').click(function(e){ e.preventDefault(); mySwiper.swipeTo( $(this).data('slide') ); }); }); </script>I get the error: swiper() is not a function.
Anyone knows how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions