Trigger gallery on image click

0.0/5
<?php
add_action('wp_footer', function() {
	?>
<script>
	jQuery(document).ready(function ($) {
		$('.jet-woo-product-gallery__image-link, jet-woo-product-gallery__image-link img').on('click', function () {
			$(this).closest('.jet-woo-product-gallery__image').find('.jet-woo-product-gallery__trigger').trigger("click");
		});
	});
</script>
	<?php
});

Comments and reviews

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

Description

Triggers Jet Woo product gallery on image click

Author

Tags