• Resolved nurokeser

    (@nurokeser)


    I looked at other topics but I don’t know how to edit it.

    <div id=’fb-root’></div>
    <script>(function(d, s, id) {
    var js, fjs = d.getElementsByTagName(s)[0];
    js = d.createElement(s); js.id = id;
    js.src = ‘https://connect.facebook.net/&#8221;.get_option( ‘fbmcc_locale’ ).”/sdk/xfbml.customerchat.js#xfbml=1&version=v6.0&autoLogAppEvents=1′;
    fjs.parentNode.insertBefore(js, fjs);
    }(document, ‘script’, ‘facebook-jssdk’));</script>
    <div class=’fb-customerchat’
    attribution=’wordpress’
    page_id=”.get_option( ‘fbmcc_pageID’ ).”
    >
    </div>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello, i hand the same problem, this is how i solved it :

    in my function.php i added a hook to change the return of the “get_option(‘fbmcc_pageID’)” i work with wpml but i this this can help you

    add_filter( 'option_fbmcc_locale', function($fbmcc_locale){
        if(ICL_LANGUAGE_CODE == 'fr') {
        	$fbmcc_locale = 'fr_FR';
        } else if(ICL_LANGUAGE_CODE == 'en') {
        	$fbmcc_locale = 'en_EN';
        }
        return $fbmcc_locale;
    });

    Thanks @hymenoby Your code helped with language.
    But how we can get more languages with is not in the list …. ?

    Genial @hymenoby i have probed your function and this running fine. THNAK YOU!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Translation problem’ is closed to new replies.