Support » Plugin: WooCommerce » Changing zoom volume on product hover

  • Resolved psablik

    (@psablik)


    Hi, when I hover over my product’s photo it zooms too much. How I can decrease zoom volume on hover?

    Thanks in advance

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support gabrielfuentes

    (@gabrielfuentes)

    Hi @psablik πŸ‘‹

    Upon checking on the internet, I could find a solution that will let you reduce the Zoom functionality. Here is the link:

    https://stackoverflow.com/a/53585353/15592226

    I hope that helps πŸ™‚

    Thread Starter psablik

    (@psablik)

    Hi,
    Problem solved, I added this code to the ‘functions.php’ file in my theme’s directory and it worked perfectly.

    add_filter( 'woocommerce_single_product_zoom_options', 'custom_single_product_zoom_options' );
    function custom_single_product_zoom_options( $zoom_options ) {
        // Changing the magnification level:
        $zoom_options['magnify'] = 0.7;
    
        return $zoom_options;
    }

    Thank you so much for help πŸ™‚

    • This reply was modified 3 months, 1 week ago by psablik.
    Plugin Support gabrielfuentes

    (@gabrielfuentes)

    You are most welcome! I’m happy to help πŸ™‚

    Great! If you have any further questions, you can start a new thread.

    Have a great day ahead! ✨

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.