/

August 5, 2024

How To Add New Fields In Shopify Newsletter Form

Shopify newsletter sign-up form

Adding new fields to the Shopify Newsletter Form:  here is the step-by-step guide.

Step 1: Go to Shopify Dashboard and click on Online store> Themes > Actions > Edit code.

Shopify newsletter sign-up form

 

Step 2: In the edit code section of each newsletter.liquid file.

Shopify newsletter sign-up form

 

Step 3:

Shopify newsletter sign-up form

 

code: Paste this code in the newsletter-form class.

<div class=”field”>

<input class=”field__input” autocomplete=”name” type=”text” id=”ContactForm-first_name” name=”contact[first_name]” value=”” aria-required=”true” placeholder=”First Name” required>

<label class=”field__label” for=”ContactForm-first_name”>{{ ‘customer.register.first_name’ | t }}</label>

</div>

<div class=”field”>

<input class=”field__input” autocomplete=”name” type=”text” id=”ContactForm-last_name” name=”contact[last_name]” value=”” aria-required=”true” placeholder=”Last Name” required>

<label class=”field__label” for=”ContactForm-last_name”>{{ ‘customer.register.last_name’ | t }}</label>

</div>

 

Step 4:  After updating, the code, go to “Themes” and then “Customize”

Shopify newsletter sign-up form

 

Step 4:  After that click “Add section” and search for “Email signup” and drag the “Email signup” element

Shopify newsletter sign-up form

From the same category