Title: Template for sub-categorys
Last modified: May 21, 2017

---

# Template for sub-categorys

 *  [Patrick Horemans](https://wordpress.org/support/users/winock/)
 * (@winock)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/template-for-sub-categorys/)
 * i have a problem with the template for subcategorys.
 * i have a parent-category “drinks” here i have several subcategorys, for some 
   reason i need the category “drinks” in a custom template.
    herefore i have use
   the woocommerce/taxonomy-product_cat.php file and have rename this to “taxonomy-
   product_cat-drinks.php” everything work as i want as long for the products in
   category “drinks”, as soon when making sub-categorys from “drinks”,the subcategorys
   use the default template.
 * how can i achieve that all subcategorys from “drinks” use the template “taxonomy-
   product_cat-drinks.php”
 * I guess to put code in my child theme functions.php but have no idea how to do
   this
 * Please help, thanks

The topic ‘Template for sub-categorys’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Patrick Horemans](https://wordpress.org/support/users/winock/)
 * Last activity: [8 years, 12 months ago](https://wordpress.org/support/topic/template-for-sub-categorys/)
 * Status: not resolved