Product images pop up in a light box and then scroll through the youtube links in the footer.
When it pops up use the left and right arrows – it then goes though the images on that page and then the you tube videos????
See link below,
Hey midischool!
Thank you for using the theme.
Please add this on Quick CSS or custom.css:
function remove_woo_rel(){
?>
<script type="text/javascript">
jQuery(window).load(function(){
jQuery('.woocommerce-main-image').removeAttr('rel');
});
</script>
<?php
}
add_action('wp_footer', 'remove_woo_rel');
Best regards,
Ismael
Hi.
Thanks for the info but that does not work.
Hi!
Please remove browser cache then reload the page a few times. It does work when I test it on my installation.
Regards,
Ismael
Hi!
Can you please post a screenshot and show the image you would like to remove?
Cheers!
Yigit
Hey!
Please change the code Ismael posted to following one
function remove_woo_rel(){
?>
<script type="text/javascript">
jQuery(window).load(function(){
jQuery('a.woocommerce-main-image').removeAttr('rel');
});
</script>
<?php
}
add_action('wp_footer', 'remove_woo_rel');
Best regards,
Yigit
woocommerece should have the option to disable/enable the lightbox see attachment.
But this section is missing within woocommerece settings when using Enfold theme, if you switch to 2013 theme its comes back.
Hi!
Lightbox is disabled now. I put a code in your child theme functions.php.
Regards,
Josue
Hi!
Try using this code instead:
.single-product-main-image>.images a, .single-product-summary .images a{
pointer-events: none;
}
The section you mention isn’t visible when Enfold is activated because the WC lightbox script is disabled by default so it doesn’t conflict with the Enfold one.
Cheers!
Josue