Aleš Sýkora / November 28, 2023 / 2 comments

Disable Woocommerce image zoom on hover in oxygen

Post summary: Add this to custom snippets. Or put in custom funcionalities plugin. Dont worry, lightbox will be working. Then the magnyfing glass icon dissapears, the over effect is gone, but the lightbox works perfect :-).

Add this to custom snippets. Or put in custom funcionalities plugin. Dont worry, lightbox will be working.

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

Then the magnyfing glass icon dissapears, the over effect is gone, but the lightbox works perfect :-).

%%tb-image-alt-text%%

Example product image without magnyfing glass after adding function.

Fuel my passion for writing with a beer🍺

Your support not only makes me drunk but also greatly motivates me to continue creating content that helps. Cheers to more discoveries and shared success. 🍻

2 comments

Share Your Thoughts