Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author SilkyPress

    (@diana_burduja)

    Would you give me a link to the page where the zoom doesn’t work?

    Thread Starter mabe23

    (@mabe23)

    Plugin Author SilkyPress

    (@diana_burduja)

    That is because there is a JavaScript error on the page.

    The error comes from the /wp-content/themes/twentysixteen/js/functions.js file, as the file is expecting to find a .entry-footer element on the page. It doesn’t find the element, therefore the error.

    The error shows up only on some pages, as the presence of the .entry-footer element is checked only when there is a img.size-full element present on the page. In you case this image.

    Quick test to check the validity of the analysis: remove the size-full class from the above mentioned image and reload the page.

    Solution: add a .entry-footer class to the footer element, as that is required by the twentysixteen theme.

    Thread Starter mabe23

    (@mabe23)

    Thanks to try to help me! Many pages are identical but someone have the zoom active and someone have not a zoom. For example…

    In this page the zoom is ok:
    https://www.comfee.eu/prodotto/condizionatori-portatili/condizionatore-portatile-fresko-10/

    In this page the zoom doesn’t work: https://www.comfee.eu/prodotto/condizionatori-portatili/condizionatore-portatile-fresko-12/

    If you check boot, you find the same code. It’s very strange… or not?

    Thread Starter mabe23

    (@mabe23)

    Another note …I’ve forgot this particlar. Sorry! ??
    Before to write this topic, I try to load the original wp theme: twentysixteen. I’ve the same problme with the twentysixteen theme.
    Now you see my child-theme but I try your plugin with original twentysixteen theme (without my changing)… and some images have zoom and other images have not zomm.
    This is the very strange factor!

    Plugin Author SilkyPress

    (@diana_burduja)

    The JavaScript error it’s not from your changes to the twentysixteen theme. The twentysixteen theme is not fully compatible with WooCommerce.

    May I ask if you tried my suggestion? Did you try to remove the “size-full” class from this image on this page? Please try that and tell me what were the results.

    Thread Starter mabe23

    (@mabe23)

    Hi diana!
    Sorry for my late reply but are hard days for me.

    I’ve removed the image with .full-size class (in this page -> https://www.comfee.eu/prodotto/condizionatori-portatili/condizionatore-portatile-fresko-12/) and now your plugin works!

    But… There are problems with other pages. These don’t have images with full-size class.
    Example: https://www.comfee.eu/prodotto/congelatori/congelatore-verticale-hs338fwen1in/

    In your post, you suggest to “add a .entry-footer class to the footer element, as that is required by the twentysixteen theme”.
    I must add .entry-footer class to the article element (<article><header><content><footer></article>) or to the site element?
    If is this the solution…

    Thanks!

    Plugin Author SilkyPress

    (@diana_burduja)

    Ok, I modified something in my plugin that will solve your problem. Please uninstall the wp-image-zoooom plugin and reinstall the 1.2.9 version from this page.

    You see, the problem you are experiencing is because of a JavaScript error in the twentysixteen theme. I will open a bug with the theme. Meanwhile you can simply reinstall the 1.2.9 version and that should solve the problem for you.

    Thread Starter mabe23

    (@mabe23)

    Wonderful! I’ll try it asap and reply to you a report.
    Thank you very much.

    Thread Starter mabe23

    (@mabe23)

    Hi Diana! I’ve reinstalled the plugin and I’ve solved. I’ll test WP Image Zoom plugin but I think it works very well. I think it’s the best zoom plugin for woocommerce.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘The zoom doesn't work with some images’ is closed to new replies.