How can I make a collection invisible but accessible via direct link?

Does anyone know how to hide a collection? I want to make my collection invisible in the Collection list but accessible through direct link.

Thank you!

1 Like

Hello FBO_uNIFORMS,

Please share your site url.

So that i can check and let you know exact solution here.

Dear FBO_uNIFORMS,

In Shopify admin panel go to Collections and open a collection you’re going to set a publish date for. Scroll down and search for Visibility. To hide a collection, choose Hidden button.

Hi, @FBO_uNIFORMS !

My name is Lilith, I’m on the Social Care team at Shopify.

This is a question that doesn’t come up too often, but I’m glad you asked this.

From my understanding of your question, you want to hide a specific collection from the /collections page where the list of all collections is shown.

If this is the case, there is a way to do this through your theme code. Depending on how your theme is built, you can certainly modify what shows up on that page.

Here is our general coding tutorial on how to customize the order of collections in that /collections page, but you can use this as a starting point to customize the collections that you want showing there as well.

That full tutorial also walks through how to modify the products that appear on the collections/all page as well.

If you’re not too comfortable with coding it yourself, I highly recommend hiring one of our partners to help you with this. You can find a suitable Shopify Partner in the Experts Marketplace or request a quote by following this guide here.

Let me know how you do with the information above! I’m happy to answer any questions you think of as you work on your business.

Hi, I am also trying to hide products or collections from the public store view. I don’t see any section or toggle anywhere for “Visibility,” neither with products nor collections.

Is this feature no longer available?

3 Likes

To hide a product:

If you want to hide the product from the whole store, you can just set the product to “Draft” mode.
If you want the products to show up in hidden Collections, but not in the “All Products” list, then there are two options.

Option 1:

  1. Create a tag for all public products, it can be anything that you would never use for anything else.

  2. Add this tag to all products that you want to be visible.

  3. Modify the Products collection to require this tag.

  4. Make sure any products that you want to hide do not have this tag

Option 2:

You can also modify the Products collection to exclude products based on titles, and other details.

To hide a collection from the Collections List:

  1. Edit the “list-collections-template.liquid” file.

  2. Find the line “{% for collection in list_collections %}”

  3. Modify the for loop to have an if statement as follows

  4. Change “NAMEOFCOLLECTION” to be the actual name of the collection you want to hide. Leave the ’ around the name.

  5. Save the file and test the page.

{% for collection in list_collections %}
        {% assign featured = collection.handle %}

{% if collection.title != 'NAMEOFCOLLECTION' %}
        
          {% include 'collection-grid-item' with collection_width: collection_width %}
        

{% endif %}

      {% endfor %}

NOTE: If you want to hide more than one collection, modify the if statement with “and collection.title != ‘NAMEOFCOLLECTION-2’” as shown below.

{% for collection in list_collections %}
        {% assign featured = collection.handle %}

{% if collection.title != 'NAMEOFCOLLECTION-1' and collection.title != 'NAMEOFCOLLECTION-2' %}
        
          {% include 'collection-grid-item' with collection_width: collection_width %}
        

{% endif %}

      {% endfor %}
1 Like

@ScottP Thank you for posting this. Hiding a collection from the Collection List is exactly what I want to do, but I cannot find the file you referenced to edit my code. I am using the free Studio theme. Does that make a difference? Grateful for any help you can provide as I’ve spent hours on this and you have been my best hope!

@PaperMichelle Different Themes can possibly have different file names. Look for files with “collection” in the name and see if you can find the right lines. There has to be code somewhere in one of the files that displays the collections.

Its not hiding the collection, Its adding blank collections

1 Like

There is no Visibility option and no Hidden button

3 Likes

Hi,

Our question is slightly on the same note, but not exactly this. We have a collection that is live and accessible from the website’s search bar to anyone who would know or guess it’s name or from the recommendations list, even for a similar name. However, it is not listed/linked through main navigation bar or through any homepage banners. It might also be currently indexed on Google. We wish to keep that specific collection live but inaccessible to any user/visitor. While we know how to take it off from Google, how can we ensure it doesn’t show up in the Website’s search results?

2 Likes

Hi @ScottP thanks for sharing this! If I want to hide a product using the method you explained, is it possible for someone to still access + purchase this product through a direct link?

Use case: we have hoodies we only want our Ambassadors to be able to purchase.

1 Like