Hide all empty categories and sub-categories in Magento. When there are empty categories, the website shows the empty page in those categories in the frontend.Don't let Your customers see the famous text "There are no products matching the selection." - hide categories automatically when it will become empty!
Go to Admin > Catalog > Category > Manage Category > General information > Include in Navigation Menu > set to "No".
When a customer wants to show category will be visible again when it will get some visible products then Select "Yes" in above setting.
If you face any problems or need our professional services, please email us at [email protected]