Display of WooCommerce Product SubCategories with Parent
<p>I am setting up  Woocommerce 2.6.7 on WordPress 4.6.1 .</p>

<p>My set up in the WooCommerce Settings / Product Display : </p>

<p>'Shop Page Display' = 'Show categories'<br>
'Default Category Display' = 'Show subcategories'.</p>

<p>My goal is to have the layout of both the Shop page AND the page that displays the Subcategories  to display with 3 columns, like the screenshot:</p>

<p><a href="https://i.stack.imgur.com/zwwKb.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zwwKb.gif" alt="screenshot1"></a></p>

<p>And to have the page that actually displays the Products belonging to a Category or a Subcategory, display in one column. I'm new to Stack Overflow, so it wouldn't let me post more than 2 images, but if you see the next image, you'll get the idea. </p>

<p>With some CSS and the code snippet I found in the Woocommerce documentation, I've managed to have the Products belonging to a Category display the way I want.</p>

<pre><code>  add_filter('loop_shop_columns', 'loop_columns');
    if (!function_exists('loop_columns')) {
    function loop_columns() {
    if ( is_product_category() || is_product_tag() ) {
    return 1;
    } 
    // for other archive pages and shop page
    else { 
    return 3;
    }}}
</code></pre>

<p>But now I have SubCategories also display in one column, like this: </p>

<p><a href="https://i.stack.imgur.com/ROe3T.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ROe3T.gif" alt="screenshot2"></a></p>

<p>How can I make this page display with 3 columns, like on the Shop Page, and not affect the 1-column display of the Products ?</p>

<p>Essentially, since I already have the Shop display the way I want, via Woocommerce Product Display Settings, I think I will need a way to target only the SubCategories that have a Parent, and have them display with 3 columns. </p>

<p>Any ideas or suggestions would be welcome.</p>