Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #689556

    I’m trying to change the language of the Facebook embedded likebox and comments in my site.
    I’ve edited the “class-framework-widget.php” file (copied it within the right path in the child-theme and edited it), and changed the “. $langcode ” to “he_IL” as I wanted in order to display in Hebrew, but the embedded items still shows in English.
    When I load the site, it shows this line in the rendered code:
    <script id=”facebook-jssdk” src=”//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.7″></script>

    Is this line created because of some element in the Enfold theme?
    Do you have any tool to change the language of the facebook embedded items easily?
    Would like your help, as long as it concerns you.

    (Site url is in Private Content)

    #690686

    Shalom!

    Please go to enfold/framework/php/class-framework-widgets.php file and find

    $langcode = function_exists('icl_object_id') && !empty($langcode) ? $langcode : 'en_US';

    and change it to following

    $langcode = function_exists('icl_object_id') && !empty($langcode) ? $langcode : get_locale();

    It is currently not possible to overwrite this file in child theme however we have informed our devs.

    Best regards,
    Yigit

    #690690

    Thank you!
    Now it works great.
    Would really appreciate if you add the option to choose the language in the theme settings, because otherwise I would have to change it manually with every update of the theme…

    Anyway, Thank you, it worked :)

    #690692

    Hi!

    Glad it worked!
    If our devs decide that is the best solution, we will include it in upcoming updates.

    You are welcome! Let us know if you have any other questions or issues and enjoy your weekend! :)

    Regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Facebook comments API’ is closed to new replies.