Show woocommerce category description under category title

Started by: Chris Blair March 14, 2017 - 18:01

I can usually figure this out on my own but I'm having trouble adding a filter or hook to make the category description show under the category title. I've tried various code snippets that work on other themes/storefronts, but they don't work on the Smarty theme. Any suggestions in pointing me in the right direction to get the woocommerce category description to show?

Chris Blair


  • Author Team
    #3542 Reply


    In order to realize your needs:

    1. Please install and activate Child theme.
    2. Add the following code in Child functions.php:

      add_action( 'woocommerce_after_subcategory_title', 'custom_add_product_description', 12);
      function custom_add_product_description ($category) {
      $cat_id = $category->term_id;
      $prod_term = get_term($cat_id,'product_cat');
      $description= $prod_term->description;

      echo '<div>'.$description.'</div>';

    3. Save the file and you can go to any category page on your WooCommerce store and see the result.


You must be logged in to reply to this topic.