All Tutorials

Feature a subset of collections on a page

All Tutorials

Feature a subset of collections on a page

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 tutorial shows you how to create a new page template and assign collections to show by using a menu.

All Shopify stores have a collections list page at the URL www.mystore.com/collections that shows all of the collections in the store. As an alternative to this tutorial, you can edit your collections list page to show only a selection of your collections.

Create your new page template

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want to edit, and then click Actions > Edit code.
  3. In the Templates directory, click Add a new template:

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

  1. Delete the existing code in your new page.list-collections file. Find your theme code below and copy and paste the code in your page.list-collections file.
  2. Click Save.

Select your theme

The code for this customization varies depending on your theme. Click the button for your theme before copying and pasting it into your page.list-collections file:

Create a page on which to feature your collections

  1. From your Shopify admin, go to Online Store > Pages.
  2. Click Add page.
  3. In the page editor, enter a Title in the text box provided. You must use the same title for the menu that you'll create in the upcoming steps.
  4. Assign your new template to the page by selecting page.list-collections from the Template suffix drop-down menu in the Template section:

  1. Click Save.

Create the menu that controls which collections are shown

  1. From your Shopify admin, go to Online Store > Navigation.
  2. Click the Add menu button:

  1. 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 give your menu the title Living Room:

  1. 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. Link to your collections in this way, instead of adding a URL to the text box:

  1. Click Save menu.