Do you have a multilingual site and wish to have your optin campaigns translated into the various languages your website supports? MailOptin integrates with popular WordPress multilingual plugins and solutions such as WPML, Polylang and Weglot to achieve this.
Say your website has English, French and Italian translations; you can create optins that will be displayed specifically to users of each language version of your site.
Follow the guide below to learn how to set this up.
Weglot
Weglot is an easy to use translation plugin for WordPress. Unlike Polylang, you don’t have to create different optins for each language. You just have to login to your account on Weglot, translate all the texts of the optin for each supported language.

Say the French version of your site is viewed, the optin will be in French.
Polylang
We assume you already have Polylang installed and activated.
In the optin campaign customizer, open Display Rules >> Polylang Targeting

Select the language version of your site that will display the optin. Note that you can select multiple languages.
If you can’t see the Polylang targeting display rule in the form builder or customizer, it’s likely you haven’t added any language to polylang. See this guide to create one.
WPML
We assume you already have WPML installed and activated.
In the optin campaign customizer, open Display Rules >> WPML Targeting

Select the language version of your site that will display the optin. Note that you can select multiple languages.
Page Targeting and translated content
Page Targeting works with your WPML translations. When you select a page, post, category, or tag under Display Rules >> Page Targeting, the rule also applies to its translations.
For example, if you set an optin to show on your English “Contact” page, it also shows on the Spanish translation of that page. You don’t need to select each translated page yourself.
Exclusions work the same way. If you set an optin to never show on a page, it is also hidden on that page’s translations.
Tip: Combine Page Targeting with WPML Targeting to control both where an optin shows and in which languages.
Embedding optins in translated pages
If you add an optin to a page with the MailOptin block or the [mo-optin-form] shortcode, the optin ID is sent to translation together with the page. When you translate the page, replace the ID with the ID of the optin you created for that language.
To find an optin’s ID, open the optin in the customizer, go to Embed & Shortcode, and copy the ID value from the Shortcode field, for example [mo-optin-form id="AbCdEf1234"].
Note: Blocks added with an older version of MailOptin store the optin ID in a format WPML can’t translate. To update such a block, open the page in the block editor and save it once before sending it to translation.
Translating click-launch links
The link text of the [mo-click-launch] shortcode is sent to translation, so your “Subscribe now” link can read “Suscríbete ahora” on the Spanish page. You can also change the id attribute in the translation to open the optin you created for that language.