You can use the following shortcode to create a newsletter unsubscribe form.
This will create a form such as the one in the image below.
By default, Noptin applies basic styles to your form fields.
Sometimes, however, the applied styles might conflict with your theme styles. In such cases, use the shortcode below instead of the first shortcode.
[noptin is_unsubscribe=1 styles=none]
When an existing subscriber submits the form, Noptin will unsubscribe them from your newsletter and display a success message as shown in the example below.
In case the submitted email address does not exist, the confirmation message in the example below is shown instead.
These confirmation messages can be changed using the following shortcode attributes.
|invalid_email||Please provide a valid email address.|
|error||Oops. Something went wrong. Please try again later.|
|updated||The given email address is not subscribed.|
|unsubscribed||You were successfully unsubscribed.|
[noptin is_unsubscribe=1 unsubscribed="Custom unsubscribe message]
Noptin allows you to redirect subscribers to any URL after they unsubscribe from your form. This is useful, for example, if you want them to fill a survey after they unsubscribe from your form.
To do this, pass a URL to the “redirect” attribute as shown below.
[noptin is_unsubscribe=1 redirect="http://example.com/goodbye"]