09
/May
Create Shopify blank theme from local
- Create the theme folders as per shopify (templates, sections, snippets, etc.)
- In the config folder create on json file called settings_schema.json and add below details
[
{
"name": "theme_info",
"theme_name": "latest Devang",
"theme_version": "1.0.0",
"theme_author": "Rock",
"theme_documentation_url": "https:\/\/help.shopify.com\/manual\/online-store\/themes",
"theme_support_url": "https:\/\/support.shopify.com\/"
}
]
- In the layout folder create file called theme.liquid with below details
<!DOCTYPE html>
<html>
<head>
...
{{ content_for_header }}
...
</head>
<body>
...
{{ content_for_layout }}
...
</body>
</html>
- In the template folder create 2 files gift_card.liquid and index.json
- In the gift_card.liquid file add default code which in available in dawn theme
- In index.json call one section file like below
{
"sections": {
"image_banner-2": {
"type": "image-banner-2"
}
},
"order": [
"image_banner-2"
]
}
- In the section folder create on section file with the same name which you added in the index.json like below
- Image_banner-2.liquid
- And in this file you can add your dummy content
- Now for the first time you have to make this folder as a ZIP file and upload into your store as a backup theme
-
Then using the shopify CLI pull this theme and based on your requirement make the changes and push into the same theme.
- CLI commands
- shopify theme dev –store=store url ( connect your specific store )
- shopify theme pull (download your theme)
- shopify theme push (upload your changes)
Post a Comment!