zoom in single product page image
-
hello implement this function: https://www.w3schools.com/howto/howto_js_image_zoom.asp and it was perfect but in the default image.
I use the wcfm plugin but I don’t think that influences it, if so I check with them.
what I need, if you can help me, is to know where to place the class tags so that it works with the loaded images and not just with the default image of the product.
at the moment I did this in product-image.php:
$ html = ‘<div class = “woocommerce-product-gallery__image – placeholder”>’;
$ html. = ‘<div class = “img-zoom-container”>’;
$ html. = sprintf (‘‘, esc_url (wc_placeholder_img_src (‘woocommerce_single’)), esc_html__ (‘Awaiting product image’, ‘woocommerce’));
$ html. = ‘<div id = “myresult” class = “img-zoom-result”> </div>’;
$ html. = ‘</div>’;can you tell me where is the div from: .woocommerce div.product div.images img
So I can add the tags there to make it work with the loaded images?
- The topic ‘zoom in single product page image’ is closed to new replies.