This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Bobby 2 months, 3 weeks ago.

Assigned support staff: Bobby.

Author Posts
July 31, 2019 at 3:06 pm #4315709

fernandaM

HI

I just read the article "https://wpml.org/documentation/support/adding-hreflang-wordpress/" but I still don't know how I can properly set up my languages.

I have content in English and Portuguese. Both contents are for languages only, no matter the country. I think that now, it might be configured wrong - my content in Portuguese in target for people that speaks Brazilian Portuguese in any country, not necessary Brazil.

Can you please help me? Thank you

July 31, 2019 at 7:13 pm #4317347

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi There,

in your screenshot you are pointing to the default locale.

the default locale is what WordPress uses to recognize a language

for example :
pt_BR = Portuguese(Brazil)
and
pt_PT = Portuguese (Portugal) Português

you can find the default locales available and supported by WordPress here
=> https://make.wordpress.org/polyglots/teams/

the href-lang tell Google about available translations for content

that is the last part of your screenshot "en" and "pt-br" you could just change the "pt-br " to "pt" (in the hreflang section and not the default locale , you can leave default locale to pt_BR)
https://wordpress.org/support/topic/hreflang-defaults-to-regional-language-code/