/templates/content-product_cat.php

  1. <?php 
  2. /** 
  3. * The template for displaying product category thumbnails within loops 
  4. * 
  5. * This template can be overridden by copying it to yourtheme/woocommerce/content-product_cat.php. 
  6. * 
  7. * HOWEVER, on occasion WooCommerce will need to update template files and you 
  8. * (the theme developer) will need to copy the new files to your theme to 
  9. * maintain compatibility. We try to do this as little as possible, but it does 
  10. * happen. When this occurs the version of the template file will be bumped and 
  11. * the readme will list any important changes. 
  12. * 
  13. * @see https://docs.woocommerce.com/document/template-structure/ 
  14. * @author WooThemes 
  15. * @package WooCommerce/Templates 
  16. * @version 2.6.1 
  17. */ 
  18.  
  19. if ( ! defined( 'ABSPATH' ) ) { 
  20. exit; 
  21. ?> 
  22. <li <?php wc_product_cat_class( '', $category ); ?>> 
  23. <?php 
  24. /** 
  25. * woocommerce_before_subcategory hook. 
  26. * 
  27. * @hooked woocommerce_template_loop_category_link_open - 10 
  28. */ 
  29. do_action( 'woocommerce_before_subcategory', $category ); 
  30.  
  31. /** 
  32. * woocommerce_before_subcategory_title hook. 
  33. * 
  34. * @hooked woocommerce_subcategory_thumbnail - 10 
  35. */ 
  36. do_action( 'woocommerce_before_subcategory_title', $category ); 
  37.  
  38. /** 
  39. * woocommerce_shop_loop_subcategory_title hook. 
  40. * 
  41. * @hooked woocommerce_template_loop_category_title - 10 
  42. */ 
  43. do_action( 'woocommerce_shop_loop_subcategory_title', $category ); 
  44.  
  45. /** 
  46. * woocommerce_after_subcategory_title hook. 
  47. */ 
  48. do_action( 'woocommerce_after_subcategory_title', $category ); 
  49.  
  50. /** 
  51. * woocommerce_after_subcategory hook. 
  52. * 
  53. * @hooked woocommerce_template_loop_category_link_close - 10 
  54. */ 
  55. do_action( 'woocommerce_after_subcategory', $category ); ?> 
  56. </li> 
.