Customizing the newsletter form in Prestige Theme

Customizing the newsletter form in Prestige Theme

NicolinaZ
Excursionist
15 0 3

We are trying to customize our newsletter form to include also Name and Country and not only e-mail but we don´t know how to do it. We found some guidance on the internet which made us change the code but now we have by mistake even added something in the code that shouldn´t be there because our footer suddenly looks very strange. This is only a problem when using safari, not chrome which is also very strange. 

 

Thank you for your help! 

Reply 1 (1)

PaulNewton
Shopify Partner
7722 678 1626

Make sure you know how to rollback themes and always make backups before editing theme files.

https://help.shopify.com/en/manual/online-store/themes/theme-structure/extend/edit-theme-code#roll-b... 

 

Docs on optional fields in contact forms

https://shopify.dev/docs/themes/customer-engagement/add-contact-form#optional-inputs 

 

A simple text field for Country would be like the following:

<div class="contact-country">
    <label for="contact-country">Email</label>
    <input type="text" name="contact[Country]" id="contact-country" />
</div>

Though you'd probably want this to be a dropdown list of all relevant countries.

 

 

If you need theme damage undone or this customization finished you can contact me directly for services.
Please provide context: store url, theme name, post url(s) and any further detail. Contact Info in signature.

 

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org