Click Open Gallery WooCommerce Single Product

0.0/5
<?php
add_action( 'wp_footer', function () { ?>
<script>
jQuery('body').on('click', '.woocommerce-product-gallery__image', function(){
    jQuery(".woocommerce-product-gallery__trigger").click();
});
</script>
<?php } );

Comments and reviews

{{ reviewsTotal }} Review
{{ reviewsTotal }} Reviews
{{ options.labels.newReviewButton }}
{{ userData.canReview.message }}

Description

Author

Tags

This snippet is untagged