It’s a bit hard to tell without knowing what shop theme you are using but I’ll try anyways…
The code <?php wc_get_template_part( 'content', 'product' ); ?>
is basically calling the template file content-product.php
. I would however not recommend you alter the default file.
On a standard woocommerce install you will find that default template file in the templates directory of woocommerce. If you have a theme installed that is woocommerce aware, chances are that you will also find a file content-product.php
inside the theme directory. I would strongly recommend you use a child theme to override that file.
Depending on what theme you are using the code my vary – but at least inside the default woocommerce template file content-product.php
you’ll find the shop loop – and inside that loop the link tag beginning like this:
<a href="https://wordpress.stackexchange.com/questions/224245/<?php the_permalink(); ?>">
Depending on the theme you use you might have to digg a bit deeper since at least the default template file puts a link around every loop item (product). A.f.a.i.k. both the thumbnail and the product title are then rendered through seperate actions…