How to Remove WooCommerce Single Product Image Link

To remove WooCommerce single product image link, simply add the code snippet below to your functions.php file;


add_filter('woocommerce_single_product_image_thumbnail_html','wc_remove_link_on_thumbnails' );

function wc_remove_link_on_thumbnails( $html ) {
return strip_tags( $html,'' );
}

Leave a Reply