This topic has 4 replies, 2 voices, and was last updated 6 years, 2 months ago ago by Rose Tyler
Hello,
I have a problem in single product page: If product has only Featured image, Magnific Popup doesn’t work. Please take a look at the screenshot!
The problem is not occur if in addition to the featured image, there are other images in the gallery
Hello,
I’ve passed your problem to our developers to fix it in next theme update.
As a temporary solution, you can make these changes to activate Magnific Popup by double click:
woocommerce/single-product/product-image.php https://prnt.sc/ko43bt
<img style="display: none" src="<?php echo wp_get_attachment_url( get_post_thumbnail_id() ); ?>">
js/scripts.js – change this http://prntscr.com/ko43pd to http://prntscr.com/ko43zo
if (typeof specificPhoto !== typeof undefined && specificPhoto !== false && $('#product-page .views-gallery').length > 0) {
$('#product-page .views-gallery .slider').magnificPopup('open',specificPhoto);
}
else if ( $('#product-page .views-gallery').length == 0 ) {
$(this).magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
verticalFit: true
}
});
}
else{
$('#product-page .views-gallery .slider').magnificPopup('open');
}
Regards
OK! Thanks for workaround!
Is IDStore compatible with latest 3.4.5 woocommerce version?
You’re welcome!
We did not test the compatibility yet.
Regards
You must be logged in to reply to this topic.Log in/Sign up