How can I hide the default category on the New woo commerce update

I don't want to show it in the store, and there are far to many products to have to go through and re-assign how can I hide it? Is there a way I can with extra css? 

Comments

  • Hi,
    what about removing the cateogry? It will then be removed from all posts?
    If it is not possible to remove then you would have to do it manually for each product.
    thanks
  • no... on the latest version of Woo Commerce a default category is introduced. I understand it cannot be deleted, but I wish to hide it??
  • I weant to hide it from the shop page where it displays categories.
  • Its ok I have already done it - for anyone with this issue - add to your child functions.php the following 


  • <?php // Do not include this if already open!

    /**
    * Code goes in theme functions.php.
    */
    add_filter( 'woocommerce_product_subcategories_args', 'custom_woocommerce_product_subcategories_args' );

    function custom_woocommerce_product_subcategories_args( $args ) {
    $args['exclude'] = get_option( 'default_product_cat' );
    return $args;
    }
Sign In or Register to comment.