How to Disable Click-to-Slide Behavior for Swiper Widget in Elementor #23620
gluexde
announced in
Developers Community
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
What problem is your feature request going to solve? Please describe.
Overview
I'm using the Swiper widget in Elementor to create carousels for my website. By default, clicking on the Swiper container slides to the next or previous slide, depending on where you click. I want to disable this click-to-slide behavior.
Steps to Reproduce
Add a Swiper widget (in this case a Testimonial Carousel) to an Elementor page.
Click on the Swiper container.
The slide changes, which is the behavior I want to disable.
Expected Behavior
Clicking on the Swiper container should not change the slide.
Actual Behavior
Clicking on the Swiper container changes the slide.
Code Snippets
I tried using the following JavaScript code snippet to disable the simulateTouch parameter but without success:
Describe the solution you'd like
If anyone has a working solution to disable the click-to-slide behavior for a Swiper widget in Elementor, it would be greatly appreciated.
Describe alternatives you've considered
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions