Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Show category description
- // code goes in functions.php for your child theme
- add_action( 'woocommerce_after_subcategory_title', 'show_cat_description', 12);
- function show_cat_description ($category) {
- $cat_id = $category->term_id;
- $prod_term = get_term($cat_id, 'product_cat');
- $description = $prod_term->description;
- echo '<div class="shop_cat_desc">'.$description.'</div>';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement