-
AuthorPosts
-
July 17, 2017 at 12:19 pm #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?
July 17, 2017 at 5:51 pm #822778August 7, 2017 at 1:38 pm #835359That 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?
August 7, 2017 at 5:28 pm #835488Hi,
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 TorvikAugust 7, 2017 at 5:52 pm #835501I 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.
August 7, 2017 at 7:00 pm #835545Hi,
Ensure that you`re using the latest version of Woocommerce and clear your cache because this code worked to me.
Best regards,
John TorvikAugust 8, 2017 at 6:36 pm #835990I 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.
August 12, 2017 at 4:03 pm #837934Hi 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,
VictoriaAugust 14, 2017 at 8:36 am #838481Hi Victoria,
thank you for your help. In the private content box you find the admin access.August 17, 2017 at 6:47 am #840250Hi,
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,
IsmaelAugust 17, 2017 at 11:06 am #840331Thank you very much. Perfect support!
August 17, 2017 at 5:55 pm #840542Thank 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 -
AuthorPosts
- The topic ‘woocommerce main product image’ is closed to new replies.