Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi there!
I have successfully added the first name to our newsletter sign up although, it does not populate onto the footer one.
Does anyone know how to add the first name to the one on the footer?
Solved! Go to the solution
This is an accepted solution.
Hi @FOP,
Please go to footer.liquid file, find 'ContactFooter' and add code here:
Code:
<div class="field" style="margin-bottom: 1.5rem;">
<input
id="NewsletterForm-name--{{ section.id }}"
type="text"
name="contact[first name]"
class="field__input"
value=""
placeholder="First name"
>
<label class="field__label" for="NewsletterForm-name--{{ section.id }}">
First name
</label>
</div>
Hope it helps!
HI @FOP,
Kindly share your store URL, so that we can check and provide you with the solution.
This is an accepted solution.
Hi @FOP,
Please go to footer.liquid file, find 'ContactFooter' and add code here:
Code:
<div class="field" style="margin-bottom: 1.5rem;">
<input
id="NewsletterForm-name--{{ section.id }}"
type="text"
name="contact[first name]"
class="field__input"
value=""
placeholder="First name"
>
<label class="field__label" for="NewsletterForm-name--{{ section.id }}">
First name
</label>
</div>
Hope it helps!
Love your work!
Hi I tried this, i have added the field but unable to see the customers name in the customer details?