I am still a bit new to wordpress development and I am facing a issue that I cant figure out.
My wordpress website theme uses the following code to display 3 categorys that show a image, category name and a link.
<?php echo do_shortcode('[product_categories number="' . $number . '" parent="0" columns="3"]'); ?>
This code outputs in:
<div class="woocommerce columns-3"> <ul class="products"> <li class="product-category product first"><a href="#">Cat1</a><li> <li class="product-category product"><a href="#">Cat2</a><li> <li class="product-category product last"><a href="#">Cat2</a></li> </ul> </div>
My question is where can I find the code that outputs the html? I want to add a href before the li instead of after it. Because now it only links to the category page when you click on the word but I want it to link when you also click anywhere on the image.
I've looked in the short_code.php file but it was really hard to follow the code to find where it get's outputted.