How to hide thumbnail slides without breaking main swiper #5845
Unanswered
modulareverything
asked this question in
Q&A
Replies: 0 comments
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 need to hide certain slides in the thumbnail selector, but not break the functionality of the main slider.
I have product variants that should appear when you select the active variant, but I only want the selected variant to be visible in the thumbnail selector.
The reason for this is there are model shots of the products but they're all hidden due to the volume of variant images. I've drawn a couple of crude diagrams to show you what I mean:
This is what I have now, showing all variants and working correctly, but hiding the model shots:

This is what I'd like, where only the selected variant appears, and the model shots can be seen:

Here's the function I have that selects the correct slide when you select a variant:
Please let me know if you need any more information. Happy to provide a CodePen or something for this if required.
Beta Was this translation helpful? Give feedback.
All reactions