• Resolved dadisk8

    (@dadisk8)


    Hello,

    I want to translate the unsubscribe page, now it is in English language but I want to translate this text to Croatian language. Do I have to translate this with Loco translate plugin or is there any other way?

    Kind regards,
    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bruna a11n

    (@bruberries)

    Hi @dadisk8,

    Do I have to translate this with Loco translate plugin or is there any other way?

    You can use the mailpoet_unsubscribe_confirmation_page filter to modify the default unsubscribe message and then translate the Unsubscribe page to your preferred language.

    This is the code:

    add_filter( 'mailpoet_unsubscribe_confirmation_page', 'mp_modify_unsubscribe_confirmation_page', 10, 2);
    function mp_modify_unsubscribe_confirmation_page( $HTML, $unsubscribeUrl ) {
    	$HTML = '<hr>';
     	$HTML .= '<center>You can <a href="'.$unsubscribeUrl.'">click here</a> to unsubscribe.</center>';
     	$HTML .= '<hr>';
        return $HTML;
    }

    For reference: https://kb.mailpoet.com/article/221-customize-your-unsubscribe-page

    Let me know if it works!

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @dadisk8,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘translate unsubscribe page’ is closed to new replies.