I learnt the hard way what -d means :P. After creating promotions section and doing everything in the local theme editor. I ran shopify theme pull -d, I forgot -e. Everything was gone from local theme. Hey but I learned something!
I haven't seen that issue but as Shopify CLI is open source you can check the issues tab of its Github repository to see if someone has reported a similar issue. github.com/Shopify/cli/issues
I did exactly the way you did: created a file promotions-group.liquid inside sections folder and add this, but keep giving me this error(sections/promotions-group.liquid: Invalid schema: tag is invalid). I even run shopify theme check -a , still given the error and the section can't be added. Any idea how to solve? Thanks ****** {{ section.settings.title }} {% schema %} { "name": "Promotion Group", "tag": "Section", "class": "promotion_wrapper", "settings": [ { "type": "text", "label": "Title", "id": "title" } ], "presets": [ { "name": "Promotions Group" } ] } {% endschema %}
@@stackingcontext oh , I didn't noticed that. It works. I didn't expect this sensitivity. Is there any way to prevent or find this kind of errors? Thanks again, I am back on rail.
Not at the moment. You can validate the JSON schema with any JSON schema validator, but for property-specific errors such as the one you had there's no tool available that I'm aware of.
Amazing, clear and thorough. You are saving my career ♥
Thankyou , this is best explanation on youtube
Thank you so much! Easy to follow + Clear explanation + Amazing as always! Let's jump to the next tutorial...
Thanks for the detailed overview of the architecture
So many little golden nuggets ✨🏆
straight to the point, useful information from start to finish. good stuff.
Very nice explanation. I love it.
Please also make a video on how to use tailwind with liquid.
Excellent explanations, thank you.
Thank you very much.
Such a treat.
Really helpful
One of the Best...
good stuff 👍👌
I learnt the hard way what -d means :P. After creating promotions section and doing everything in the local theme editor. I ran shopify theme pull -d, I forgot -e. Everything was gone from local theme. Hey but I learned something!
lol never again
Thanks!
Thank you!
Also the local server reloads very slow. I mean it takes 10-20 seconds. Is there any solution to it?
I haven't seen that issue but as Shopify CLI is open source you can check the issues tab of its Github repository to see if someone has reported a similar issue.
github.com/Shopify/cli/issues
great video!
How to run live server?
(Shopify theme serve not working)
Live server will not work, you need Shopify CLI so the Shopify data of your store can be injected into the Liquid files and then converted to html.
what is the best solution for creating a theme from scratch without using dawn theme?
Get a good understanding of how Shopify Themes work and create each file you need yourself.
Make something advanced Bro. Thanks
I did exactly the way you did: created a file promotions-group.liquid inside sections folder and add this, but keep giving me this error(sections/promotions-group.liquid: Invalid schema: tag is invalid). I even run shopify theme check -a , still given the error and the section can't be added. Any idea how to solve? Thanks
******
{{ section.settings.title }}
{% schema %}
{
"name": "Promotion Group",
"tag": "Section",
"class": "promotion_wrapper",
"settings": [
{
"type": "text",
"label": "Title",
"id": "title"
}
],
"presets": [
{
"name": "Promotions Group"
}
]
}
{% endschema %}
The value of "tag" should be in lowercase
@@stackingcontext oh , I didn't noticed that. It works. I didn't expect this sensitivity. Is there any way to prevent or find this kind of errors? Thanks again, I am back on rail.
Not at the moment. You can validate the JSON schema with any JSON schema validator, but for property-specific errors such as the one you had there's no tool available that I'm aware of.