Home › Forums › Basel support forum › Bug with images product
Bug with images product
- This topic has 3 replies, 2 voices, and was last updated 7 years, 6 months ago by Artem Temos.
-
AuthorPosts
-
May 31, 2017 at 10:58 am #14568
mirkoParticipantHi, following the Basel upgrade to version 3.2.0, I found a bug to the product page.
It often happens that the images are not displayed correctly: instead of the main image, there are 3 thumbnails, as you can see from the screenshot in the attachment.
It resolves with a simple refresh of the page, but this bug appears very often.
Is there a way to solve it?
Thanks so much.Attachments:
You must be logged in to view attached files.May 31, 2017 at 11:56 am #14572
Artem TemosKeymasterHello,
Yes, we are aware of this issue. We will fix it in our next theme update.
You can fix it yourself, replacing the code in the
js/functions.js
file$('.product-images').imagesLoaded(function() { $('.woocommerce-product-gallery__wrapper').addClass('owl-carousel').owlCarousel({ rtl: $('body').hasClass('rtl'), items: 1, autoplay: false, dots: false, nav: false, autoHeight: ( basel_settings.product_slider_auto_height == 'yes' ), navText:false, loop: false, onRefreshed: function() { $(window).resize(); } }); });
with this one
$('.woocommerce-product-gallery__wrapper').addClass('owl-carousel').owlCarousel({ rtl: $('body').hasClass('rtl'), items: 1, autoplay: false, dots: false, nav: false, autoHeight: ( basel_settings.product_slider_auto_height == 'yes' ), navText:false, loop: false, onRefreshed: function() { $(window).resize(); } });
You need to disable JS minification in Theme Settings -> Performance also.
Regards
May 31, 2017 at 3:08 pm #14580
mirkoParticipantHi, I replaced the code with the correct one, but unfortunately the problem is still there.
May 31, 2017 at 6:35 pm #14588
Artem TemosKeymasterCould you please provide us your FTP and admin access so we can check it ourselves?
-
AuthorPosts
- You must be logged in to create new topics. Login / Register