Nov 6, 2013 - Wordpress Comments Off on WooCommerce Mystile theme show only top level categories
WooCommerce Mystile theme show only top level categories
Be default, the Home page will ALL categories. In order to show ONLY top level categories, you need to modify the theme-woocommerce.php (includes/theme-woocommerce.php) file.
To do this, search for the following code:
$params = apply_filters( 'mystile_homepage_product_categories_params', 'number=""' );
and replace it with this:
$params = apply_filters( 'mystile_homepage_product_categories_params', 'parent="0"', 'number=""' );
Note: This change may be overwritten by a Theme update.