diff --git a/extensions/new-theme/blocks/redirect_button.liquid b/extensions/new-theme/blocks/redirect_button.liquid new file mode 100644 index 0000000..91d71ce --- /dev/null +++ b/extensions/new-theme/blocks/redirect_button.liquid @@ -0,0 +1,36 @@ + + {{ block.settings.heading }} + + +{% schema %} +{ + "name": "Contact SomeOne", + "target": "section", + "settings": [ + { "type": "text", "id": "heading", "label": "button label", "default": "Contact" }, + { "type": "color", "id": "colour", "label": "text_Colour", "default": "#ff0000" }, + { "type": "color", "id": "background_color", "label": "background_color", "default": "#000000" }, + { "type": "text", "id": "url", "label": "url", "default": "youtube.com" }, + { "type": "checkbox", "id": "open_tab", "label": "open_tab", "default": true }, + { "type": "text", "id": "padding", "label": "padding", "default": "10px 5px" }, + { "type": "text", "id": "class", "label": "class", "default": "button" }, + { "type": "text", "id": "margin", "label": "margin", "default": "10px 10px" } + ], + "enabled_on": { + "templates": ["product"] + } +} +{% endschema %}