From 5be8bec9e438508bbab625d60f9500f836140484 Mon Sep 17 00:00:00 2001 From: Albez0-An7h Date: Wed, 4 Mar 2026 13:44:48 +0530 Subject: [PATCH] feat: add redirect liquid button --- .../new-theme/blocks/redirect_button.liquid | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 extensions/new-theme/blocks/redirect_button.liquid 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 %}