Can you please explain the issue in more detail, with some example links, screenshot or screen recording? Also please let me know which custom code you're referring to?
Actually If I add custom language Australia English and I give Locale "en_AU" and href lang "en-AU". Now I show in console yoast seo og:locale not change en_AU like in predefined language og:locale changed.
I see a few primary problems with your setup which need to be fixed before moving forward. Please consider followings:
IMPORTANT: Take full backup of your website and database beforehand. It is highly advised to try the following on a staging/dev site first, so your live website isn't compromised.
Then recheck for the issue, if it continues to appear, try following:
- Deactivate all plugins except WPML and its addons and check for the issue.
- Activate each plugin one-by-one, while keeping check on the issue after a plugin is activated. This way you'll be able to pinpoint a plugin having a conflict (or problem), if any.
- If the problem persists, repeat the above steps with a default theme of WordPress (i.e. 2021 or 2023).
Please let me know your findings and I'll try my best to assist you further on the matter.
Regards.
The topic ‘[Closed] Yoast Seo og:locale not adding custom language’ is closed to new replies.