Possible conflict with WordPress or WooCommerce #4789
Unanswered
seanvandermolen
asked this question in
Q&A
Replies: 1 comment 3 replies
-
You mean issue that nav buttons moves every slider? You need to specify the navigation elements in a more specific way for each slider, probably they must have unique selectors too |
Beta Was this translation helpful? Give feedback.
3 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.
-
I'm trying to get multiple swipers on a single page to work and I've discovered an issue where the unique id swiper generates is applied to the swiper-wrapper, however the aria-controls for next/prev are applied with the last sliders instance id breaking that functionality.
After seeing the default config work in a Codepen, then cloning that and using custom IDs I realized there is something else going on.
https://codepen.io/seanvandermolen/pen/vYmeoWG
I'm wondering if this is a conflict with jQuery and if a solution similar to Bootstrap could work?
https://getbootstrap.com/docs/5.0/getting-started/javascript/#no-conflict-only-if-you-use-jquery
I'm not sure what the next step is for troubleshooting. I have a test site up and running with the minimal plugins for WooCommerce and a simple bootstrap theme.
https://swiper.tpcc.io/
Another issue I ran into. When using a custom class on the container to init each slider there was no unique id or additional classes added to the html. Only when I used a custom ID did things start working.
Beta Was this translation helpful? Give feedback.
All reactions