How to Name field in Newsletter/Email signup section of Dawn theme | Shopify

How to Name field in Newsletter/Email signup section of Dawn theme | Shopify

 

Following code need to add :

<div class="field firstname">
<input type="text"
name="contact[first_name]"
id="{{ formId }}-first_name"
class="field__input{% 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 %}
>
<label class="field__label" for="NewsletterForm--{{ section.id }}">Name</label>
</div>

Back to blog

2 comments

For that, you actually have to add it to the footer.Liquid section… I know, its weird. But basically instead of using the newsletter.Liquid code, the footer has a near identical copy of it

So you go to footer. Liquid, and then find the newsletter code in the footer, and then what’s said in the video…

Casey

how do i add this to the email sign up field in the footer?

shibs

Leave a comment