Detected language does not match specified language
-
Hi, I have a bilingual website (En/Es) and I use Polylang. I don’t really have any aparent issue with it, but after checking the hreflang for SEO in a hreflang tags testing tool, it detects a problem. Something like this:
https://mywebsite.com
2 hreflang tags, “self-referencing” return tag, detected language English, html lang attribute: en-US. (OK!)https://mywebsite.com/es/inicio/
2 hreflang tags, “en” return tag, detected language English, detected language does not match specified language, html lang attribute: es-ES. (Not OK!)It seams I have a switch somewhere for Spanish detected as English, but I don’t know where.
My pages and posts are in English for the canonical url https://mywebsite.com and in Spanish at https://mywebsite.com/es/ Pages, posts, categories and tags are all correctly linked and you can jump from EN/ES anywhere in the site. The website works fine. But I don’t know how to fix that alert. I tried to add new hreflang tags directly in the html <head> but it won’t solve it.
Can anybody help me? Thank you in advance.
MarThe page I need help with: [log in to see the link]
- The topic ‘Detected language does not match specified language’ is closed to new replies.