Create Template is now showing on my website

learningdesign
Shopify Partner
109 1 15

there is no create template in my website how to fix this please 

Capture.PNG

Replies 2 (2)

iffikhan30
Shopify Partner
237 35 43

Hello, 

 

You are owner of the store? If not, maybe you don't have permission to add template.

Custom theme and app [remix] expert.
Buy me a Coffee
Email: irfan.sarwar.khan30@gmail.com
Chat on WhatsApp

John_AD
Shopify Partner
7 3 2

You may be using an older theme that doesn't take advantage of the Shopify 2.0 updates. Specifically json page templates.
.json template files will have a different icon next to the name.

json_templates.png



If you are comfortable editing the codebase you can make the updates yourself. Otherwise I recommend getting help from a professional.
Alternatively you could install a newer theme (e.g.: Dawn) which uses JSON templates by default and start again.

In the code editor, create a new page template (in the 'templates' folder) and call it "page.json" or something similar.

Add the following code:

{
  "sections": {
    "main": {
      "type": "main-page"
    }
  },
  "order": [
    "main"
  ]
}

 
The "type": "main-page" references a .liquid file in your "sections" folder.
If there is no main-page.liquid file you will need to create it, or change this reference to another exisiting file/section.

If there are any issues with the above, the editor should indicate what the problem is.

★ Is this the answer you're looking for? Help out the community by liking and accepting the solution! ★

Looking to work with someone on your project? → Get in touch @ asyncdigital.com.au