Hiding empty collection from menu - Craft Theme

Topic summary

Main issue: On a Shopify store using the Craft theme (upgraded to version 8.0), the poster wants to keep collections in the admin but automatically hide any collection from the site’s menu when it has no available products.

Context: The user has searched extensively and found solutions for other themes, but those do not work with Craft, indicating theme-specific constraints.

Technical notes: In Shopify, a “collection” is a grouping of products; the request is to conditionally display menu items only for collections with product count > 0.

Current status: No code, images, or attachments were provided; no working method or workaround has been shared in the thread.

Outcome: No decisions or action items recorded; the question remains unresolved and open, with a need for a Craft theme–compatible approach to hide empty collections from navigation.

Summarized with AI on January 30. AI used: gpt-5.

I have searched and searched, found so many solutions that are for other templates that do not work for Craft. I want to keep these collections because I do add to them time to time, but when there are no products available in the collection I want it to be hidden on my website. I am using Craft template upgraded to 8.0 version.