Create Template is now showing on my website

Create Template is now showing on my website

learningdesign
Shopify Partner
201 1 22

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

Capture.PNG

Replies 2 (2)

iffikhan30
Shopify Partner
275 37 51

Hello, 

 

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

Custom theme and app [remix] expert.

Email: [email protected]
Chat on WhatsApp

John_AD
Shopify Partner
7 3 3

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