Hi, when I open image in a single product page two images are opened.
Visit this page
and try to click in the main image and then close it. You will see that another image is present below the main image.
How can we fix it.
thank you very much
Hey integraing,
Please go to Enfold/js/avia.js and find
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]',
and change it to
exclude : '.single-product , .single-product a,.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]',
If you are using a child theme, please add following code to Functions.php file of your child theme
function wp_change_aviajs() {
wp_dequeue_script( 'avia-default' );
wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true );
}
add_action( 'wp_print_scripts', 'wp_change_aviajs', 100 );
and move modified file inside /js folder
Best regards,
Yigit