Okay
  Public Ticket #1182320
Disable product image magnifier on mobile
Closed

Comments

  •  2
    Ruben started the conversation

    With the new Woocommerce update (I'm currently on 3.0.7) the product images automatically enlarge on hover. While this is a nice feature on desktop, it prevents scrolling easily on mobile.

    Is it possible to disable this function on mobile devices?
    If this isn't possible, is it possible to switch of this hover magnification function altogether?

  • [deleted] replied

    Hi Ruben,

    This is not an option on WooCommerce. To disable that please go to wp-content/themes/oxygen open the functions.php file and add this line of the code on the end of that document .

    // Disable Image Zooming on Product page
    add_filter( 'oxygen_product_gallery_zoom_enable', '__return_false' );
  •  2
    Ruben replied

    Great, I've added it to my child-theme's functions.php and it works flawlessly.

    It is not possible to keep it enabled on desktop but disable it for mobile?

  • [deleted] replied

    Hi Ruben,

    I'm glad to hear that

    Sorry there is not any solution for this for the moment but we will check if we can add an functionality like this in future updates.