How to hide “collections/all” page in Shopify

Sell Online With Shopify
Trusted by millions of businesses worldwide
Sign up for a free trial and enjoy 3 months of Shopify for $1/month on select plans.

The “collections/all” page is automatically created by Shopify. This page will show all published products of the Shopify store. For some reason, you may not want visitors to this page. Yes, you can do that.

  • From your Shopify admin, go to Online Store > Themes.
  • Find the theme you want to edit, and then click Actions > Edit code.
  • In the Templates directory, click collection.liquid.
  • Insert below code to the top of this file
  • Insert below code to the bottom of this file
  • Click Save and you are done.

Happy coding!

You may also like...

2 Responses

  1. Tom says:

    Thank you so much for posting this – it worked!!

    • Perry says:

      In doing this did it affect the child pages from here?

      e.g. /collections/bag-straps was still visible?

      Basically I’m looking to hide the /collections page for SEO reasons, but don’t want to effect the pages that sit beneath it.

Leave a Reply

Your email address will not be published. Required fields are marked *