Skip to content

Instantly share code, notes, and snippets.

@dpw1
Last active October 20, 2021 02:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dpw1/815ff3cb78f664307c322f0c937f4cc8 to your computer and use it in GitHub Desktop.
Save dpw1/815ff3cb78f664307c322f0c937f4cc8 to your computer and use it in GitHub Desktop.
Add a "name" field to Debut theme's newsletter (Shopify)
<input type="text"
name="contact[first_name]"
id="{{ formId }}-first_name"
class="input-group__field{% if form.errors %} input--error{% endif %}"
value=""
placeholder="First name"
aria-label="First name"
aria-required="true"
autocorrect="off"
autocapitalize="off"
{% if form.errors %}
aria-invalid="true"
aria-describedby="{{ formId }}-first_name-error"
data-form-status
{% endif %}
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment