[Resolved] Change button language?
The Facebook for WordPress plugin tries to load the appropriate Facebook locale based on your WordPress site’s locale value. You can also act on the
fb_localefilter to directly set.
Some sites have plugin or theme code loading a version of the Facebook PHP SDK before the Facebook for WordPress plugin, typically in the default language of English United States. Search your page source code for
Thanks for your reply.
I did find one other instance of the FB SDK, and it does indeed use English as the defined language, but it seems to be this plugin. no?
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
how to manage a 3 languages website ?
after publishing a post in a language (for example in German), all like buttons turn on this language (even those of french and english posts):
I’ve installed the plugin using a Dutch WordPress Back-end for an Australian Website. The like button on the front-end is now displayed in Dutch. this should be English. In the PHP I see’public $locale = ‘en_US’;’ I thought it should display in English in this case?
Act on the
fb_localefilter to set your site’s Facebook locale if your backend locale is different than your frontend locale.
I changed the back-end to English, but still see it in Dutch on the frontend. Don’t know what it does on an english system: http://insideoutbythea-imageconsulting-perth.com/
Don’t really undertand with what you mean with:
Act on the fb_locale filter to set your site’s Facebook locale if your backend locale is different than your frontend locale.
I make changes in the plugin?
A filter is a way for you to customize the behavior of the Facebook plugin for WordPress without directly editing its code. You create a new function (in a plugin, in your theme’s
functions.phpfile, etc.) to override the default behavior of the plugin. In this case you may want to override a locale value of
nl_NLwith a locale value of
en_GBfor British English.
- The topic ‘[Resolved] Change button language?’ is closed to new replies.