Hreflang defaults to regional language code
-
Hi! I have just started using the plugin and am having problems with setting hreflang correctly.
I have created international variants of the languages I need by overwriting unused languages in the list and with EN, IT, ES, and FR I haven’t had any problems, but when I create the Portuguese site it defaults to “pt-BR” instead of just “pt”. This is what the code looks like:
<link rel="alternate" hreflang="en" href="https://www.visitcampnou.com/"><link rel="alternate" hreflang="es" href="https://www.visitcampnou.com/es/"><link rel="alternate" hreflang="it" href="https://www.visitcampnou.com/it/"><link rel="alternate" hreflang="fr" href="https://www.visitcampnou.com/fr/"><strong><link rel="alternate" hreflang="pt-BR" href="https://www.visitcampnou.com/pt/"></strong><style type="text/css" media="print">#wpadminbar { display:none; }</style>
This is how the languages are set up: https://imgur.com/2eKPkUs
- The topic ‘Hreflang defaults to regional language code’ is closed to new replies.