This solution worked for me. The code removes the Add to Cart button on the product image and links the product image to the product page. I have attached an image of my code.
I replaced line 24-36 of the old code with line 24-27 of the code attached.
I have not noticed any problems with any other functionality. I am new to coding but I hope this works for you,