Where is documentation on How to add a new Section?

Where is documentation on How to add a new Section?

ChrisMerlin
Shopify Partner
7 0 0

I want to learn how to add a new Section to an existing Theme, such as Dawn.

 

I want my client that uses Dawn to be able to see the Section I have created within the UI when Customizing their website.

 

Therefore I want my new Section to appear in this list...

 

ChrisMerlin_0-1702989830929.png

 

I cannot find anything in support/community that just simply explains how to add a Section. I've looked through code of existing Themes and cannot see exactly how that list of sections is defined. The chat robot is useless, as it never has answers for developer questions.

 

Any resources you can guide me to please?

 

Replies 2 (2)

ChrisMerlin
Shopify Partner
7 0 0

I figured it out. After copying another section's code. 
Then I noticed the "name" must be exactly the same at the top (beginning of schema)
and that at the bottom within "presets"

Liam
Shopify Staff
2807 310 805

Glad you figured it out, these two resources will be helpful too:

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog