Tagged: Language
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)
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
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 :)