Hi!
What do you use for multilingual?
Only content should change for languages or content and settings?
Many pop-ups are planned but when – this is the hard question 🙂
For multilingual setup I use Polylang.
I placed a Mailchimp form inside the Popslide popup and works perfect for one language (actually across the website), I just need a way to implement one for each language.
So, the content of the form will need to change, according to the language of the page.
I know this is a long shot, but I was thinking:
if lang is FR { Popslide with FR form }
else { Popslide with EN form }
Not sure how cookies will be handled, though.
Thank you!
Sorry for the late response.
Solutions are two:
1. Make Mailchimp bilingual
2. Define a conditional shortcode
If you would like to go with second approach add the shortcode function to your theme’s functions.php file:
function polylang_shortcode($atts, $content = null)
{
if (empty($content))
return '';
extract( shortcode_atts( array('lang' => ''), $atts ) );
if (empty($lang))
return "<h3>You must specify 'lang' using shortcode: polylang</h3>";
return ($lang == pll_current_language()) ? $content : '';
}
add_shortcode('polylang', 'polylang_shortcode');
You can use it like this:
[polylang lang="en"]English Mailchimp form[/polylang][polylang lang="sp"]Spanish Mailchimp form[/polylang]
Shortcode provided by Ronny 🙂
The cookie will be handled once for both languages. So if someone will close it on the 1st, it will be not displayed on the 2nd.
Hope that will help you 🙂