Product Images too large and grow (indefinitely!) on page resize
-
I’m using woocommerce and have a very strange issue with my product swiper…
Whenever I have more than 1 image in my product gallery (i.e. more than 2 images total including the main “product image”), the swiper-container grows to a point where I can see more than 1 image at the same time.
Even stranger, when I resize the page – the swiper-container grows further – and keeps growly indefinitely while I resize until I either resize to a mobile page size or refresh the page.
Just in case it helps with context, here’s an example of the code behind the scenes dictating my product slider…
<div class=”swiper-container clearfix swiper-container-horizontal”>
<div class=”swiper-wrapper” style=”transition-duration: 0ms; transform: translate3d(-477px, 0px, 0px);”>
<div class=”swiper-slide easyzoom is-ready swiper-slide-prev” style=”width: 477px; background-image: url("https:///www.example/pathToImage/image.jpg");” data-zoom-image=”https:///www.example/pathToImage/image.jpg”>
</div><div class=”swiper-slide easyzoom is-ready swiper-slide-active” style=”width: 477px; background-image: url("https:///www.example/pathToImage/image.jpg");” data-zoom-image=”https:///www.example/pathToImage/image.jpg”>
</div>
</div>
</div>Sorry if that’s a little vague, but I’m really hoping someone else has had a similar problem trying to restrict image sizes to the main swiper-container with Woocommerce.
- The topic ‘Product Images too large and grow (indefinitely!) on page resize’ is closed to new replies.