This code removes whole categories from appearing anywhere in the shop. Add the category name to the array in the code.
The main shop page is often not a useful view when you have hundreds of products. You can redirect this page to another url or even to a 404 (page not found) if you want to disable that viewing option. IMPORTANT NOTE: This snippet may interfere with the Product Search widget. The search results page … Read moreRedirect main shop page