Explained: How Shopify Page Templates Work
Difficulty level: intermediate
Coding required: some
Need help? Contact support
Create a new page template to assign the new Theme Enhance sections to
In the Shopify Theme Editor, edit the code of the theme you are working on
In the templates folder, add a new template file as a page, json(default), and call the template whatever you want - just remember what you call it
Using the button below, click to copy the code content to your clipboard
Delete the contents of the page template file you created in the previous step and paste the contents of your clipboard into that file
Save the product page template file, if the icon is gray and you didn't click a green button, the previous step is incomplete.
Locate the
product.liquid
file in the sections folder and open itIn the sections folder, open the product.liquid, find all references to {% section "section-name" %} in the file. There typically are 2-3 sections. Note the names, you will need them in the next step
In the product page template you created, update the sections that were in there in both the manifest and the listing (this needs gifs)
Save the product page template file
In the sections folder, open the product.liquid file. Look for code that is not the code to include sections ({% sections "section-title" %}) - this needs a gif and copy the code from the sections. If it was before, put it in the ordered sections. If it was after put it after.
Issues viewing your page/page template?
If you are working on a preview theme and you are having issues viewing your page, please see: How Shopify page templates work