When people visit your Single Product pages, they may click on your product’s thumbnail image, which in turn pulls up a lightbox for that image.
This may be undesirable for some website owners, so that is where this code snippet comes in.
// REMOVE LINKS FROM SINGLE PRODUCT IMAGES
add_filter('woocommerce_single_product_image_thumbnail_html','wc_remove_link_on_thumbnails' );
function wc_remove_link_on_thumbnails( $html ) {
return strip_tags( $html,'
' );
}