How can I hide empty collections on my ecommerce site?

Topic summary

A user seeks a code solution to automatically hide empty collections (those with no products) from their collection pages. They want to keep these collections in Shopify’s backend in case they receive inventory from suppliers later.

Another user suggests a manual workaround:

  • Navigate to the specific collection in Shopify admin
  • Click “Manage” next to the publishing section
  • Uncheck both visibility boxes to remove it from the storefront

This approach requires hiding collections individually rather than automatically filtering empty ones. The discussion remains open regarding whether a code-based solution exists for bulk or automatic hiding of empty collections.

Summarized with AI on November 17. AI used: claude-sonnet-4-5-20250929.

Hi,

on my collection pages I want to hide collections that have no products. is there a code I can implement? Because I have alot of suppliers so I don’t want to hide it in the actually shopify collections in case I do get that brand.
https://luxurymrkt.com/collections?page=5

thank you

I did it this way. Go to your collections and click on the one you want to hide.

Click on manage, beside publishing and uncheck both boxes and it should take it off of your store.