You can use the following shortcode to create a newsletter unsubscribe form.

[noptin is_unsubscribe=1]

This will create a form such as the one in the image below.

newsletter unsubscribe form

Remove CSS Styles

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]

Change labels and placeholders

You can change the email field’s label and placeholder as shown below.

[noptin email_label="Email" email_placeholder="Enter your email address" is_unsubscribe=1]

Confirmation Messages

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.

successfully unsubscribed

In case the submitted email address does not exist, the confirmation message in the example below is shown instead.

email not subscribed error

These confirmation messages can be changed using the following shortcode attributes.

AttributeDefault Value
invalid_emailPlease provide a valid email address.
errorOops. Something went wrong. Please try again later.
not_subscribedShown when someone unsubscribes with an email that is not already subscribed.
unsubscribedYou were successfully unsubscribed.

For example,

[noptin is_unsubscribe=1 unsubscribed="Custom unsubscribe message]

Redirect Unsubscribers

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"]

Related Guides

  • Creating Subscription Forms

    Learn how to create newsletter subscription forms using our form builder

    Read More

  • Newsletter Subscription Shortcode

    Learn how you can display a newsletter subscription form in your posts, pages and text widgets using a shortcode.

    Read More

  • Newsletter Subscription Widget

    Our newsletter subscription widget allows you to add a newsletter sign-up form to your header, footer, sidebar, Elementor, or any other place that supports widgets.

    Read More

  • Newsletter Subscription Block

    If you’re using the new WordPress editor, you can use our Newsletter Block to add a subscription form to your posts and widgets.

    Read More

  • Pop-up Forms

    This guide shows you how to create a newsletter subscription pop-up form in WordPress for free. Unlike normal newsletter sign-up forms, pop-up forms have significantly higher conversion rates. In fact, the average conversion rate is 3.09%. Below is an example of an “exit-intent coupon code pop-up“. Noptin allows you to create such a system without…

    Read More

  • Sliding Forms

    Learn how to create sliding newsletter sign-up forms. Forms can slide in from the bottom left, top left, bottom right, or top right.

    Read More

  • Preventing Spam Sign-Ups

    Noptin uses several methods to prevent spam signups while keeping the forms easy to use for non-spammers. If, however, you are still getting spam sign-ups, you can install any of the following plugins to fight spammers. La Sentinelle antispam This plugin uses the following techniques to block spam:- Honeypot – this adds a hidden input…

    Read More

  • Creating Custom Newsletter Subscription Forms

    Learn how to add a newsletter subscription checkbox to any custom form

    Read More

  • Redirect Users after Subscription

    Learn how to redirect users to a different page, website or downloadable file after they subscribe to you newsletter.

    Read More

  • Smart Tags

    You can use smart tags in your form messages, welcome emails, or subscription shortcodes to add dynamic content to the form. Noptin will detect the smart tag and replace it with the appropriate value. If the value is not known, Noptin will replace the smart tag with an empty string. Example 1: Display the subscriber’s…

    Read More

  • Change subscription confirmation messages

    Check out the default newsletter subscription confirmation messages and how to edit them

    Read More