This topic has 2 replies, 2 voices, and was last updated 1 years ago ago by Rose Tyler
Ho creato un popup e tradotto in 4 lingue, ho selezionato dal multiple headers, ma in inglese, francese e tedesco, vedo solamente il popup in italiano.
Come posso far si che si veda in italiano, il popup in italiano, in inglese il popup in inglese e così via?
Ho avuto già problemi su questa cosa, era stato sistemato ma ora è tornato.
Hello, Stefano Valso,
Thank you for contacting us and for using XStore.
We have addressed the issue you reported.
To do so, we have activated the following option: Customizer -> Header Builder -> Newsletter -> Preload Content.
Additionally, we have added the following code to
wp-content/themes/xstore-child/functions.php
// setup newsletter for different languages
add_action('init', function(){
add_filter( "theme_mod_newsletter_section_et-desktop", function($current_mod){
if (defined( 'ICL_LANGUAGE_CODE' )){
switch (ICL_LANGUAGE_CODE) {
case 'en':
$current_mod = 158091;
break;
case 'it':
$current_mod = 157935;
break;
case 'fr':
$current_mod = 158370;
break;
case 'de':
$current_mod = 158362;
break;
default:
// code...
break;
}
}
return $current_mod;
}, 101 );
}, 101);
Kind Regards,
8theme team
You must be logged in to reply to this topic.Log in/Sign up