Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #822542

    I use the new photo gallery. Standard there is the zoom function on the main picture and the lens with click to the lightbox. Is it possible to have only the click (lightbox) on the main picture and disable the lens?

    #822778

    Hey allerart,

    Here is how to do it

    Disable WooCommerce 3.+ Zoom

    Best regards,
    Victoria

    #835359

    That solution doesn’t work for me. I also tested the PlugIn “WC Disable zoom / lightbox feature in 3.0”. This also had no effect. Do you have an other solution?

    #835488

    Hi,

    To solve it, just add the following code at your functions.php

    
    // Disable the gallery zoom on single products
    // =============================================================================
    add_action( 'after_setup_theme', 'removing_gallery_zoom', 100 );
    
    function removing_gallery_zoom() { 
    remove_theme_support( 'wc-product-gallery-zoom' );
    }
    // =============================================================================
    

    Best regards,
    John Torvik

    #835501

    I have put the code in my functions file of the child theme. It doesn’t work. The zoom is still available. I need the lightbox on the main image.

    #835545

    Hi,

    Ensure that you`re using the latest version of Woocommerce and clear your cache because this code worked to me.

    Best regards,
    John Torvik

    #835990

    I have the latest Woocommerce Version and deleted the cache. It doesn’t have any affect. I tested it in an other Woocommerce Shop and there was also no affect.

    #837934

    Hi allerart,

    Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?

    Best regards,
    Victoria

    #838481

    Hi Victoria,
    thank you for your help. In the private content box you find the admin access.

    #840250

    Hi,

    We replaced the filter in the functions.php file with the following code.

    add_action( 'woocommerce_init', 'woocommerce_init_zoom_mod', 11 );
    function woocommerce_init_zoom_mod() {
    	 remove_theme_support( 'wc-product-gallery-zoom' );
    }

    Best regards,
    Ismael

    #840331

    Thank you very much. Perfect support!

    #840542

    Thank you! We are happy to help. We’re glad that Ismael’s solution was what you needed. We’ll close this topic now. For any other questions or issues, feel free to post them here on the forum and we will do our best to assist you.

    Thank you for using Enfold.
    Cheers!
    Sarah

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘woocommerce main product image’ is closed to new replies.