Support » Theme: Spacious » Removing Woocommerce Zoom

  • Resolved thalpin

    (@thalpin)


    Hello,

    I’m trying to remove the hover zoom from a Woocommerce site but adding the snippet below to my child theme does not work.

    remove_theme_support( ‘wc-product-gallery-zoom’ );

    Any suggestions?

    Thanks!

    Tim

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    For removing the zoom, can you insert the code mentioned below in the function.php file of the child theme.

    function remove_zoom_woocommerce() {
        remove_theme_support( 'wc-product-gallery-zoom' );
    }
    add_action( 'after_setup_theme', 'remove_zoom_woocommerce', 100 );

    Thanks.

    thalpin

    (@thalpin)

    Thanks for your response Rajesh. Unfortunately that code didn’t have any affect when loaded into my child theme.

    Hi,

    The above code should work fine for removing hover zoom effect on WooCommerce. Also, while checking your site, the child theme is not being loaded. You can take a reference for the child theme from the link below.
    https://themegrill.com/blog/tutorial-creating-wordpress-child-theme/

    Thanks.

    thalpin

    (@thalpin)

    Ah! Thanks for noticing that. I’ve put it into a custom plugin and it works fine. Thank you very much!

    Hi,

    Glad to know it worked. Feel free to ask again if you get any issue regarding the theme. If you liked this theme, you can help us by leaving a review.

    Thanks.

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