Remove the product image rollover on WooCommerce product pages.

TIPS

Jul 31, 2022 | WooCommerce Tips | 0 comments

This function removes the product image rollover on WooCommerce product pages.
[php]
/* removing the product image rollover BEGIN */
function remove_product_zoom_support() {
    remove_theme_support( 'wc-product-gallery-zoom' );
}
add_action( 'wp', 'remove_product_zoom_support', 100 );
/* removing the product image rollover END */
[/php]

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

More Tips

Ad - Web Hosting from SiteGround - Crafted for easy site management. Click to learn more.

Cloudways Hosting

WPEngine Hosting

Pressable Hosting

AccuWeb Hosting

Ask the Divi Guy a Question

"*" indicates required fields