Hello everyone,
I’ve coded a marquee section for dawn, but don’t have the option to delete the section once it’s added (see attached png).
Below you can see the {% schema %} code…
{% schema %}
{
“name”: “Marquee”,
“max_blocks”: 5,
“settings”: [
{
“type”: “color”,
“id”: “bg_color”,
“default”: “#000”,
“label”: “Background color”
},
{
“type”: “select”,
“id”: “speed”,
“label”: “Speed”,
“default”: “20”,
“options”: [
{
“value”: “50”,
“label”: “50s”
},
{
“value”: “40”,
“label”: “40s”
},
{
“value”: “30”,
“label”: “30s”
},
{
“value”: “20”,
“label”: “20s”
},
{
“value”: “10”,
“label”: “10s”
}
]
}
],
“blocks”: [
{
“type”: “announcement”,
“name”: “Marquee”,
“settings”: [
{
“type”: “text”,
“id”: “text”,
“default”: “Welcome to our store”,
“label”: “t:sections.announcement-bar.blocks.announcement.settings.text.label”
},
{
“type”: “select”,
“id”: “text_alignment”,
“options”: [
{
“value”: “left”,
“label”: “t:sections.announcement-bar.blocks.announcement.settings.text_alignment.options__1.label”
},
{
“value”: “center”,
“label”: “t:sections.announcement-bar.blocks.announcement.settings.text_alignment.options__2.label”
},
{
“value”: “right”,
“label”: “t:sections.announcement-bar.blocks.announcement.settings.text_alignment.options__3.label”
}
],
“default”: “center”,
“label”: “t:sections.announcement-bar.blocks.announcement.settings.text_alignment.label”
},
{
“type”: “url”,
“id”: “link”,
“label”: “t:sections.announcement-bar.blocks.announcement.settings.link.label”
}
]
}
],
“default”: {
“blocks”: [
{
“type”: “announcement”
}
]
}
}
{% endschema %}
Can anyone help?
Cheers // Peter
