Schema Not Working Correctly

itsmattsaunders
New Member
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
0 Likes
paramSoft
Shopify Partner
1405 230 613

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

Want to customize Shopify storefront? Check the PageFly app
75,000+ Active Shopify merchants. TOP5 best Shopify Apps.

Contact Me On : parambabla.soft@gmail.com
0 Likes