All things Shopify and commerce
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
I am currently using the old Supply theme and I have many collections for different types of products that are on pages. for example: for year labels, I did page.year-collections.liquid. Then code was added to display all the year collections on 1 page. I am trying to move my store to the "trade" theme, and I would like to set up my collections in the same way. I have been unsuccessful so far at finding the right code for the trade theme. I need the code to have the page name, description, fetch the appropriate collections and collection layout. Can anyone help?
Hey! @Sammie_re,
To recreate your custom collections landing page (like `page.year-collections.liquid`) in the new Trade theme, create a new page template called `year-collections` and then create a matching section (like `custom-collections-grid.liquid`) that includes the page title, description, and loops through specific collection handles (such as `"collection-2022,collection-2023"`) to display each collection with its image, title, and link. Assign this new template to your desired page in the Shopify admin, and it will replicate the behavior you had in the old Supply theme.
Sidekick worked! Thank you so much!
Have you considered adding multiple "Featured collection" sections on one page?
You'd need to create a separate template for this page in Customizer though.
No coding required.
The code you have is a workaround using a menu to store (and edit) links to several collections when sections were not available on pages other than homepage.
This is not needed for newer themes -- you'd be able to select collections in section settings.