Changing Locale Language
-
According to Yoast documentation, changing the site language on WordPress or inputting the following code is supposed to change the og: locale
add_filter('wpseo_locale', function() {
return 'en_CA';
});After doing that, it doesn’t seem to work. I know I have done this before, and it used to work, but I have done this for two websites, and it did not work. I am not sure if an update happened that broke this, but I have tried multiple languages, including English (UK) and English (Canada), and nothing works. It insists on staying as en_US for some reason.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.