WordPress.org

Ready to get started?Download WordPress

Forums

MailPoet Newsletters
[resolved] Change Unsubscribe Page (13 posts)

  1. Uendi
    Member
    Posted 8 months ago #

    Hi

    I would like to change the texts of my unsubscribe page if any subscriber decides to unsubscribe my newsletter. However, from the mailpoet settings, under Basics, I can see the column "Unsubscribe page", there is no way for me to change the texts. Is there any advise ?

    What if I want to add in a large image for my unsubscribe page ? Is it available to do so ?

    Thanks.

    https://wordpress.org/plugins/wysija-newsletters/

  2. MailPoet Staff
    Member
    Plugin Author

    Posted 8 months ago #

    Hi Uendi,

    Yes you can change the text inside the WordPress page you have chosen to display for users that clicked on that link. You can create a new page just for that and then point that page on the Settings page on the field you mentioned.

    Does this make sense?!

  3. Uendi
    Member
    Posted 8 months ago #

    However, from Settings page there is no fill for me to change the text.

    You can create a new page just for that and then point that page on the Settings page on the field you mentioned.

    I don't understand this part.

  4. MailPoet Staff
    Member
    Plugin Author

    Posted 8 months ago #

    • 1. Create a new WordPress page
    • 2. Go to MailPoet Settings page and select that page on the dropdown to choose what page you want for Unsubscribe page

    Does this make sense?!

  5. stevem
    Member
    Posted 8 months ago #

    I understand how to do that but then I lose the ability to add the undo unsubscribe link as shortcodes don't work on my own page.

    Is there any way to customise the unsubscribe wording and show the undo unsubscribe link?

  6. MailPoet Staff
    Member
    Plugin Author

    Posted 8 months ago #

    Unfortunately you can't insert the unsubscribe link there. Do the following: copy this code (only until line 32) https://gist.github.com/benheu/0f32277338dafb4d2ee5 and place it on your theme functions.php file.

    Then on the template page of your theme that you use to show the unsubscribe link, you should use this command to show the unsubscribe link: <?php echo mpoet_get_undo_unsubscribe(); ?>

    Does this make sense?! You'll need someone's help with PHP if you don't know how to do it.

  7. Uendi
    Member
    Posted 8 months ago #

    Then on the template page of your theme that you use to show the unsubscribe link,

    Template page refer to ?

  8. stevem
    Member
    Posted 8 months ago #

    I've worked on this and I think I've sorted it. I had the same question as Uendi so will answer that as well.

    1. Create a template page (see http://codex.wordpress.org/Page_Templates)
    Do this by copying page.php in your theme folder and name the copy - let's call it mynewsletter_page.php. Edit it so it says at the top:

    <?php
    /*
    Template Name: My Subscription Page
    */

    2. Add the code MailPoet says to functions.php, editing the wording to say what you want.

    3. In mynewsletter_page.php after
    <div class="entry-content">
    or after <?php the_content(); ?>
    add <?php echo mpoet_get_undo_unsubscribe(); ?>

    4. Create a new Unsubscribe page and this is the important bit: at the bottom right in Page Attributes choose the Template called My Subscription Page

    5. If you preview this page here, no unsubscribe information will show but, instead, save it and preview it in MailPoet, Settings, Basics, Unsubscribe page, Unsubscribe (assuming that is your page's title).

    6. You can go even further if you add to your template the code. at the bottom of http://support.mailpoet.com/knowledgebase/customize-your-confirmation-pages/. Then you can have one page for both subscribing and unsubscribing.

    I hope that helps and that I haven't made any mistakes!

  9. MailPoet Staff
    Member
    Plugin Author

    Posted 8 months ago #

    Thanks so much stevem, you explained the process better than we have done! Cheers!

  10. Uendi
    Member
    Posted 8 months ago #

    Thank you very much for mailpoet staff and stevem, and also for your patience.

  11. goferit
    Member
    Posted 6 months ago #

    Follow up question to this great thread:

    If we have two pages, one for subscribe and one for unsubscribe, how can we use the functions.php code snippet to redirect to the "Subscribed!" page after the user clicks "Undo." -?

    Or, even better, if we run one page for both subscribing and unsubscribing, as in #6, @stevem, would you mind providing a code snippet showing how we do the "design here" part from the support article code snippet?

    Weak on PHP.

    Thxxx!

  12. MailPoet Staff
    Member
    Plugin Author

    Posted 6 months ago #

    Hi Goferit,

    I've updated that page: http://support.mailpoet.com/knowledgebase/customize-your-confirmation-pages/

    Look at the bottom of that page, there's a function to add to your functions.php to show the Undo link. I've just modified that code to redirect to the confirmation page after you click on the Undo link.

  13. goferit
    Member
    Posted 6 months ago #

    Great, thanks! Ben and Tung got me all set up on this a couple of weeks ago.

    Glad to see the updated documentation.

Reply

You must log in to post.

About this Plugin

About this Topic