Online Store 2.0 - add a custom section

I want to add a custom section to our theme. We’re currently rebuilding the online store 2.0 theme “Dawn” to fit our old theme.
Therefore I want to add a custom section that I can select within the theme customizer, but it doesn’t appear.
Is it even possible?

I created a “main-collection-description.liquid” within the section path.

Not accessible within the customizer

Manually added the description section within the collection.json (still doesn’t appear in the collection)

What did I miss? I can’t find any info about it within the docs.
Thanks for any advice.

Hi,

You need to add preset in your schema.

Thanks

Thank you, that did the trick.
But I still don’t know exactly why, because even in the presets the name just does repeat the “name” attribute in the first place. Why do we need this for visibility?

Hi,

You can read the below article by Shopify

How to Create Your First Shopify Theme Section — Shopify Theme Development (2022)

Thanks