Newsletter Sign Up

{% style %} .newsletter-{{ section.id }} { background-color: {{ section.settings.color_background }}; color: {{ section.settings.color_text }}; } .newsletter-{{ section.id }} .newsletter__input::-webkit-input-placeholder { color: {{ section.settings.color_text }}; } .newsletter-{{ section.id }} .newsletter__input::-moz-placeholder { color: {{ section.settings.color_text }}; } .newsletter-{{ section.id }} .newsletter__input::-ms-input-placeholder { color: {{ section.settings.color_text }}; } {% endstyle %} {% schema %} { "name": "Newsletter", "settings": [ { "type": "paragraph", "content": "Customers who subscribe will have their email address added to the 'accepts marketing' [customer list](/admin/customers?query=&accepts_marketing=1)." }, { "type": "text", "id": "title", "label": "Heading", "default": "Sign up and save" }, { "type": "richtext", "id": "text", "label": "Subheading", "default": "

Subscribe to get special offers, free giveaways, and once-in-a-lifetime deals.

" }, { "type": "color", "id": "color_background", "label": "Background", "default": "#f9f9f9" }, { "type": "color", "id": "color_text", "label": "Text", "default": "#1c1d1d" } ], "presets": [ { "name": "Newsletter", "category": "Promotional" } ] } {% endschema %} {%- assign newsletter_form_id = 'newsletter-' | append: section_id -%} {% form 'customer', id: newsletter_form_id %} {% if form.posted_successfully? %}
{{ 'general.newsletter_form.newsletter_confirmation' | t }}
{% endif %} {% if form.errors and form.context == snippet_context %} {{ form.errors | default_errors }} {% endif %} {% endform %}