Loading
Copy-paste a theme-editor section for marketing - A call-to-action banner with heading, text, button and alignment options.
Discover what is new in the store this month.
Shop the collection{%- if section.settings.heading != blank -%} <section class="gpl-promo gpl-promo--{{ section.settings.align }}" style="--gpl-promo-bg: {{ section.settings.bg }};"> <h2>{{ section.settings.heading | escape }}</h2> {%- if section.settings.text != blank -%}<p>{{ section.settings.text | escape }}</p>{%- endif -%} {%- if section.settings.button_label != blank and section.settings.button_link != blank -%} <a class="gpl-promo__button" href="{{ section.settings.button_link }}">{{ section.settings.button_label | escape }}</a> {%- endif -%} </section>{%- endif -%} {% schema %}{ "name": "Promotional banner", "settings": [ { "type": "text", "id": "heading", "label": "Heading", "default": "New season arrivals" }, { "type": "textarea", "id": "text", "label": "Text", "default": "Discover what is new in the store this month." }, { "type": "text", "id": "button_label", "label": "Button label", "default": "Shop the collection" }, { "type": "url", "id": "button_link", "label": "Button link" }, { "type": "color", "id": "bg", "label": "Background", "default": "#14532d" }, { "type": "select", "id": "align", "label": "Alignment", "options": [ { "value": "left", "label": "Left" }, { "value": "center", "label": "Centre" } ], "default": "left" } ], "presets": [{ "name": "Promotional banner" }]}{% endschema %} {% stylesheet %}.gpl-promo { background: var(--gpl-promo-bg); color: #fff; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 3rem); border-radius: 16px;}.gpl-promo--center { text-align: center; }.gpl-promo h2 { margin: 0 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2.25rem); }.gpl-promo p { margin: 0 0 1.25rem; max-width: 36rem; }.gpl-promo--center p { margin-inline: auto; }.gpl-promo__button { display: inline-block; background: #fff; color: #111; padding: 0.75rem 1.25rem; border-radius: 999px; font-weight: 600; text-decoration: none;}{% endstylesheet %}