Removing main product image link in single product view

When you're in a single product view, by default, clicking the main featured image will load a lightbox with the images. To remove this featured image link, follow these steps:

1. Create a file named custom-functions.php in your theme root folder
2. Edit it, and paste the following
`

<?php
/**
 * Remove link wrapping main product image in single product view.
 * @param $html
 * @param $post_id
 * @return string
 */
function custom_themify_single_product_image_html( $html, $post_id ) {
    return get_the_post_thumbnail( $post_id, apply_filters( 'single_product_large_thumbnail_size', 'shop_single' ) );
}
add_filter('woocommerce_single_product_image_html', 'custom_themify_single_product_image_html', 10, 2);
?>

`
3. Save the file. If you were editing it locally, upload it by FTP to the theme folder in your server.

The thumbnails below the main image will remain unaffected, and clicking them will correctly load the lightbox gallery with these images.

Summer Sale: Get up to 30% off code: SUMMERSALE & $100 off Lifetime Club with code: SUMMERLIFE