Newsletter
An email sign-up form.
An email sign-up form.
- Where it can go: Any page
- Area: Home and storytelling
- File:
sections/newsletter.liquid
Section settings#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Color scheme | Color scheme | Scheme 2 | |
| Eyebrow | Text | The letter | |
| Heading | Text | Subscribe to our emails | |
| Heading size | Choice | Medium | Options: Large, Medium, Small. |
| Text | Rich text |
Section spacing#
| Setting | Type | Default | What it does |
|---|---|---|---|
| Top spacing | Choice | Medium | Options: None, Small, Medium, Large. |
| Bottom spacing | Choice | Medium | Options: None, Small, Medium, Large. |
Developer notes#
After a post Shopify reloads the page with ?customer_posted=true#<form id>, which every customer form on the page sees; the script in the form keeps the result (welcome message or error) only in the form whose id is in the link, and puts the others back to an empty field. Without JavaScript every form shows the result.