Problema popup newsletter in multilingua

This topic has 2 replies, 2 voices, and was last updated 1 years, 1 months ago ago by Rose Tyler

  • 1 Answer
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    November 3, 2023 at 08:04

    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

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.