Viewing 1 replies (of 1 total)
  • hannah

    (@hannahritner)

    Hi,
    Thanks for reaching out! Unfortunately there isn’t a built-in way to do that. You can try adding the following code into your functions.php into your child theme:

    if ( ! function_exists( 'my_show_category_description_in_shop' ) ) {
        function my_show_category_description_in_shop( $category ) {
            ?>
            <h2 class="woocommerce-loop-category__description">
                <?php
                echo esc_html( $category->description );
                ?>
            </h2>
            <?php
        }
    }
    add_action( 'woocommerce_shop_loop_subcategory_title', 'my_show_category_description_in_shop', 20 );

    Does that work as you’re wanting?

    Kindly,
    Hannah

Viewing 1 replies (of 1 total)
  • The topic ‘Editing categories loop’ is closed to new replies.