Separate Subcategory Listings from Product Listings in Product Loop
-
I’m using Woocommerce 3.5.6 and the latest version of the Woocommerce Storefront theme.
I have categories set to display both subcategories and products. The issue is once the subcategories end the template starts showing product listings on the same line. I would like for the products to start listing on a new line. I noticed that in the archive-product.php that the subcategories are combined with the products in the woocommerce_product_loop. I used
remove_filter( 'woocommerce_product_loop_start', 'woocommerce_maybe_show_product_subcategories' );
to remove the subcategories. I tried to use
woocommerce_maybe_show_product_subcategories();
To bring the subcategories back in above the product_loop, but it didn’t seem to work, no matter how I tried. What else can I do? Is there a feature in Woocommerce that I’m missing? I don’t understand why anyone would want subcategories on the same line as products. That UI would be confusing to customers.
Thanks,
Matt
- The topic ‘Separate Subcategory Listings from Product Listings in Product Loop’ is closed to new replies.