Fixed category displaying incorrectly in top bar
authorLaury GvR <laury@gaslightmedia.com>
Wed, 9 Mar 2016 18:43:21 +0000 (13:43 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 9 Mar 2016 18:43:21 +0000 (13:43 -0500)
woocommerce/content-product_cat.php

index 827768d..dc2a847 100644 (file)
@@ -52,32 +52,28 @@ $woocommerce_loop['loop']++;
 
        <?php do_action( 'woocommerce_before_subcategory', $category ); ?>
 
-       <a href="<?php echo get_term_link( $category->slug, 'product_cat' ); ?>">
-
-               <?php
-                       /**
-                        * woocommerce_before_subcategory_title hook
-                        *
-                        * @hooked woocommerce_subcategory_thumbnail - 10
-                        */
-                       do_action( 'woocommerce_before_subcategory_title', $category );
-               ?>
-
-               <h3>
-                       <?php
-                               echo $category->name;
-                       ?>
-               </h3>
-
-               <?php
-                       /**
-                        * woocommerce_after_subcategory_title hook
-                        */
-                       do_action( 'woocommerce_after_subcategory_title', $category );
-               ?>
-
-       </a>
-
+        <?php
+                /**
+                 * woocommerce_before_subcategory_title hook
+                 *
+                 * @hooked woocommerce_subcategory_thumbnail - 10
+                 */
+                do_action( 'woocommerce_before_subcategory_title', $category );
+        ?>
+
+        <h3>
+                <?php
+                        echo $category->name;
+                ?>
+        </h3>
+
+        <?php
+                /**
+                 * woocommerce_after_subcategory_title hook
+                 */
+                do_action( 'woocommerce_after_subcategory_title', $category );
+        ?>
+    
        <?php do_action( 'woocommerce_after_subcategory', $category ); ?>
 
 </li>