Hello, i turned off lightbox, but its still on on mobile device
This topic has 10 replies, 4 voices, and was last updated 1 years, 7 months ago ago by Andrew Mitchell
Hello, i turned off lightbox, but its still on on mobile device
mobile screenshot
Hello,
Thank you for contacting us and for using XStore.
To assist you further, we kindly ask that you insert the following code into your system and verify the outcome:
.single-product .double_image .main-images > div {
pointer-events: none;
}
Kind Regards,
8theme team
not working, even added !important and still nothing
i added in custom css
Hello,
We appreciate your prompt response.
Please change the code to:
.single-product .double_image .main-images > div,
.single-product a.woocommerce-main-image.zoom {
pointer-events: none !important;
}
Kind Regards,
8theme team
still same
Hi @Ilya,
Can you please try adding the following code under functions.php file locates in your child theme:
add_action('wp_footer', 'n2t_wp_footer');
function n2t_wp_footer(){
?>
<script>
jQuery( function($){
$(document).ready(function(){
var mobile = ($(window).width() < 600);
$('.single-product a.woocommerce-main-image.zoom').click(function (e) {
if (mobile)
e.preventDefault();
});
})
});
</script>
<?php
}
Hope it helps!
it worked, thanks
Dear Ilya,
As we continue our mission to exceed expectations, your insights become increasingly valuable. Could we, with all due respect, request your thoughtful feedback by giving our theme a deserved 5-star rating on ThemeForest?
Click here to share your valuable perspective: https://themeforest.net/downloads
Your time and trust are highly appreciated!
Best Regards,
The 8Theme Team
The issue related to '‘lightbox on mobile is always on, unable to turn off’' has been successfully resolved, and the topic is now closed for further responses