Hi everyone,
How can I add a pre defined section on the list of sections?
I defined the section on the folder section called logo in the code, now I want to have it all over the theme so It can be added to any page, is it possible?
Topic summary
A user needed to make a custom section (called “logo”) available in the theme’s section list so it could be added to any page.
Solution Found:
- Added a
presetsarray to the section’s schema block - Configured the preset with appropriate name and category settings
- The section now appears in the theme’s available sections and can be added globally
The issue was resolved by properly structuring the section’s {% schema %} block with preset configuration, making it accessible throughout the theme editor.
I found a solution. I added it in the end of the section and now it is available on theme sections.
{% schema %}
{
“name”: “Certificate Logos”,
“presets”: [
{
“category”: “Product Sections”,
“name”: “Certificate Logos”,
“settings”: {}
}
]
}
{% endschema %}
