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.
|Please provide a valid email address.
|Oops. Something went wrong. Please try again later.
|Shown when someone unsubscribes with an email that is not already subscribed.
|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 out 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"]