I’ve added a page to my shop and would like to add a number of my collections via a ‘collection list’ section.
Unfortunately, after speaking with Shopify Help, it seems that, as I’m using a legacy theme, this isn’t possible without some sort of additional code. I’d be really grateful if anyone can help me with this.
I’m a complete novice with coding so a step-by-step guide/walk-through would be really appreciated!
It’s good practice to create a copy of your theme and work on that to preview the changes before applying, especially if you are editing the raw code. Alternatively, you can also use the Shopify theme editor’s versions to revert to previous versions, but it is not recommended if you are making multiple changes.
Now to answer your specific question on adding a section to the page of a legacy theme:
In the code editor’s search box, search for “page.” This will display the relevant template file. If the template name is, for example, “contact,” the file you should look for is “page.contact.liquid.” If it’s the default template, look for “page.liquid.”
Save the file and navigate to the customization settings to verify if the section has been added. You can now customize and add collections to the section using these settings.