separating product and categories loop
-
Hi
I am working with a custom child of Storefront theme, and would like to have both categories, and products to be displayed on the “shop” page; I do know that you can set that in the cusomization in the dashboard, but that displays/lists the categories as products, meaning in the same div, which is not good layout IMHO.
I do see the loop is in archive-product.php which I copied, and put in the child theme, not being a coder I don’t know how to rewrite the loop to achieve separating categories from products in a layout as this
<div class="categories-list"> all the categories </div> <div class="products-list"> all the products </div>
As alternative I used the shortcode [product_categories columns=”3″] in the shop page, but I think maybe it would be better to have it in the loop?
Thank you
- The topic ‘separating product and categories loop’ is closed to new replies.