This free WooCommerce extension permits you to hide categories on your shops main page.
For this you have to save the categories with ',' seperated in woocommerce > settings > products tab section.
In order for this to work you have to have Categories displayed. This can be set via Customizer. Appearance > Customize > WooCommerce > Product Catalog.
"Choose what to display on the main shop page." Select Show categories as seen in the Screenshot below.
安装:
Upload 'wc-hide-categories.zip' like any other plugin or upload the zip file contents to the '/wp-content/plugins/' directory
Activate the plugin through the 'Plugins' menu in WordPress
Configure the plugin at Dashboard > WooCommerce > Settings > Products > Hide Categories On Shop Page
Save your settings with the category slugs with ',' seperated.
I.E. cat1, cat2, cat3
升级注意事项:
1.0.1
Users should use this version and disregard version 1.0
更新日志:
1.0.1
Added the conditionals to test if the shop is_home() or is_front_page() and added the a fourth test a user could uncomment to add their custom shop page slug.