Feature a subset of collections on a page

You can feature a subset of collections on a custom page by editing your theme code. This customization shows you how to create a new page template and assign collections to show by using a menu.

Feature collections on a page

Create your new page template

You will need to create a new page template to assign to pages on which you will feature collections.

  1. Find the theme you want to edit, and then click Actions > Edit code.

  2. In the Templates directory, click Add a new template:

    Add a new template
  3. Create a new template for page called list-collections:

    Create a new template
  4. Paste this code hosted on GitHub at the very bottom of your new page.list-collections file.

  5. Click Save.

Create a page on which to feature your collections

To create a new page:

  1. Click Add page.

  2. In the page editor, enter a Title in the text box provided. Note that you must use the same title for the menu that you'll create in the upcoming steps.

  3. Assign your new template to the page by selecting page.list-collections from the Template suffix drop-down menu in the Template section:

    Template suffix
  4. Click Save.

Create the menu that controls which collections are shown

In this step you will create a menu that controls which collections are shown on your new page.

  1. Click the Add menu button:

    Add menu
  2. Give your menu the same Title as the title that you gave the page that will feature your collections. For example, if the page you created has the title Living Room, then you will give your menu the title Living Room:

    Menu title
  3. Add links to your menu for each collection that you want to feature by clicking Add menu item. Choose collections from your store by clicking on Collections in the drop-down menu for the Link text box. It is important to link to your collections in this way, instead of adding a URL to the text box:

    Create a menu
  4. Click Save menu.

Want to discuss this page?

Visit the Shopify Community