App reviews, troubleshooting, and recommendations
Hi everybody. I have a question about setting architecture of themes, you can see it in https://shopify.dev/themes/architecture/settings/input-settings , i want to know that can i customize a new setting type for it
Solved! Go to the solution
This is an accepted solution.
Hi @aliepenter,
You cannot customize those input-settings. However, you can use it in the section or blocks and can create your own type. See example below. See the difference on the way of calling the code in section and in blocks.
Section
HTML
<div>
<h2>{{section.settings.heading}}</h2>
</div>
SCHEMA
{% schema %}
{
"name": "Custom Section",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
}
]
}
{% endschema %}
Blocks - Creating your own type
HTML
<div>
<h2>{{section.settings.heading}}</h2>
{% for custom_block in section.blocks %}
<a href="{{custom_block.settings.my_link}}" style="color: {{custom_block.settings.color}}">
My Link</a>
{% endfor %}
</div>
SCHEMA
{% schema %}
{
"name": "Custom Section",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading"
}
],
"blocks": [
{
"type": "my-custom-block",
"name": "My custom block",
"settings": [
{
"type": "url",
"id": "my_link",
"label": "Link"
},
{
"type": "color",
"id": "color",
"label": "Color",
"default": "#000"
}
]
}
]
}
{% endschema %}
Hope this helps
This is an accepted solution.
Hi @aliepenter,
You cannot customize those input-settings. However, you can use it in the section or blocks and can create your own type. See example below. See the difference on the way of calling the code in section and in blocks.
Section
HTML
<div>
<h2>{{section.settings.heading}}</h2>
</div>
SCHEMA
{% schema %}
{
"name": "Custom Section",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading",
}
]
}
{% endschema %}
Blocks - Creating your own type
HTML
<div>
<h2>{{section.settings.heading}}</h2>
{% for custom_block in section.blocks %}
<a href="{{custom_block.settings.my_link}}" style="color: {{custom_block.settings.color}}">
My Link</a>
{% endfor %}
</div>
SCHEMA
{% schema %}
{
"name": "Custom Section",
"settings": [
{
"type": "text",
"id": "heading",
"label": "Heading"
}
],
"blocks": [
{
"type": "my-custom-block",
"name": "My custom block",
"settings": [
{
"type": "url",
"id": "my_link",
"label": "Link"
},
{
"type": "color",
"id": "color",
"label": "Color",
"default": "#000"
}
]
}
]
}
{% endschema %}
Hope this helps
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025