• Resolved ltw08

    (@ltw08)


    I am running into an issue where, even though I have Show Products selected under Category Display, it is still displaying the subcategories associated with that parent category alongside the products.

    I have been unable to create code to hide these subcategories and haven’t had any luck searching.

    Anyone have any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Senff – a11n

    (@senff)

    Hey @ltw08

    Can you share a link to your site? That way we can take a look and see if some CSS code might help here.

    Thread Starter ltw08

    (@ltw08)

    Sure @senff .The two subcategories currently displaying are Clear Gel and Premium ADA (I haven’t assigned a product to the third yet).

    http://newworldimports.0450967.netsolhost.com/?product_cat=toothpaste

    Plugin Support Senff – a11n

    (@senff)

    Hey @ltw08

    I’m note why it would show the subcategories (if you have it set to “Products” under “Category Display”), but you might want to check that with your theme developer.

    In the meantime, a quick solution would be to add the following CSS code:

    body.tax-product_cat .product-category {
      display: none;
    }
    Thread Starter ltw08

    (@ltw08)

    @senff Unfortunately, no luck with the CSS. I might have an issue between my child theme and parent theme.

    Thread Starter ltw08

    (@ltw08)

    @senff UPDATE: Managed to get the categories hidden, however, it’s fubared how many items are currently displaying per row. Below is the code I’m using to dictate how many items I have in a row.

    `add_filter(‘loop_shop_columns’, ‘loop_columns’, 999);
    if (!function_exists(‘loop_columns’)) {
    function loop_columns() {
    return 5;
    }
    }

    Thread Starter ltw08

    (@ltw08)

    Resolved. It was a Categories setting within WooCommerce.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Category Display Not Functioning Correctly’ is closed to new replies.