Why are multiple schemas in one section not working in Liquid?

itsmattsaunders
Visitor
2 0 0

Hey there!
So I've got a question regarding schemas in Liquid.
I know each individual schema works, but once I put multiple schemas within the one section, the other two stopped working.
Ideally, I'd have an image uploader, then an option for custom header and an option for custom subtext.
I've added the code below, and an image of the customiser. As you can see only schema appears.

{% schema %}
 {
  "name": "Hero Image Picker",
  "settings": [
 {
  "type": "image_picker",
  "id": "hero-img-picker",
  "label": "Hero Image Picker"
 }
],
  "name": "Hero Text",
  "settings": [
 {
  "id": "header",
  "type": "text",
  "label": "Header",
  "default": "Hello world"
 }
],
  "name": "Hero Subtext",
  "settings": [
{
  "id": "subheader",
  "type": "text",
  "label": "Header",
  "default": "More text"
  }
 ]
}
{% endschema %}
Screen Shot 2020-11-30 at 7.05.31 PM.png
Reply 1 (1)

Hardik29418
Shopify Partner
2913 419 1081

This type of multiple schema will not work. please gather all schema in one settings

- Need a Shopify developer? Chat on WhatsApp or EMAIL ME!


- Your Coffee Tip would do Magic code ❤️
- For Shopify Design Changes | Shopify Custom Coding | Custom Modifications
- Email