newsletter-subscribe
Subscribes the email of a form to the newsletter.
Where it can go
- Anywhere on the page.
- Must contain
form input[type="email"]. - Out of place, Smootify removes it from the page: a form without an email input also logs an error.
What it requires
- The server plan: on other plans Smootify removes the element from the page.
- The Newsletter Subscription extension (server plan, the extension activated in the Smootify dashboard, the licensed domain). Without it, the element does nothing.
Fields in the form
Each field’s name attribute tells Smootify what the field holds.
| Name | Field | What it does |
|---|---|---|
the first input[type="email"] (any name) | input type="email" | Required (removed without it). Renamed email: the address subscribed; every other field is ignored. |
Attributes on the element
- It reads
tags. - Smootify writes
tagson it: do not set them yourself.