New Sections Not Showing Up in Shopify Theme Customizer! How to Fix

The newly created section shows on the Shopify theme customizer only if we set presets in the schema. We have to add a preset name and category into the schema of the new section. A sample schema is given below.
{% schema %}
{
"name": "My New Section",
"settings": [
],
"presets": [{
"name": "My New Section",
"category": "Text"
}]
}
{% endschema %}
Presets are required only for showing the sections on the home page "Add section" list. For use in any template file, we can directly add the section as {% section 'my-new-section' %}
. Here my-new-section
is the section file name.
Explore more about schema presets in Shopify Documentation
On datainfinities.com, Read articles all around JavaScript, React, Node.js, PHP, Laravel, and Shopify.
Related Blogs
for loop, cycle and tablerow Iteration Tags in Shopify Liquid
Work With Images in Shopify - Get Image CDN URL, Theme Assets URL, And Get Image Tag
layout, render and section Theme Tags in Shopify Liquid
if, unless, elsif/else and case/when Conditional Tags in Shopify Liquid
Too many re-renders. React limits the number of renders to prevent an infinite loop
Scaling Node.js Applications With PM2 Clusters
ERESOLVE unable to resolve dependency tree error when installing npm packages
How to check internet connection(online or offline) in React
The style prop expects a mapping from style properties to values, not a string
Explore All Blogs