Incorrect hreflang implementation (from Google) for site, Perth theme

Hello. I really hope you can help with this issue. I came across an instance of someone with a similar problem (albeit with a different theme, https://wordpress.org/support/topic/google-says-hreflang-tags-are-missing/), but wonder whether the issue might be down to the specific theme (Perth).

My website is multilingual as my main clients are the Russian- and German-speaking markets.

I am currently using the Polylang plugin, which works very well with the theme (although I can confirm that issue raised under this thread https://athemes.com/forums/topic/installing-polylang-removes-content-of-home-page/ is also true).

Is there anything that can be changed in the theme’s head section or otherwise that might help rectify the problem of “incorrect hreflang implementation”?

The thing is that the links for the different languages work both ways in all languages.

This is the full message from Google:
“Google has detected that some pages on your site have implemented the rel-alternate-hreflang tag incorrectly. In particular, there seems to be a problem with incorrect language and region codes, or incorrect bi-directional linking (if page A links with hreflang to page B, there must be a link back from B to A as well). Google uses the hreflang attributes to serve the correct language or regional URL to the right users in search results.”

Hello @hejiemi,

Can you please try to deactivate Polylang plugin and see if it helps? But please make a full site backup first.

Kind Regards, Roman.

Hi Roman. I think you may have misunderstood the query.

Deactivating the plugin is not the issue here. I’ve been able to check whether the plugin adds the hreflang tags and it does.

It’s all there.

The issue most likely lies in the Theme and some kind of error with the heading that is somehow preventing Google from reading the hreflang tags.

I know this isn’t your plugin, but the most common solutions point to the fact that the issue is with the themes being used. https://wordpress.org/support/topic-tag/hreflang-polylang/

The issue in most cases has to do with <div> in the head section.

How can this be resolved?

I haven’t found any <div> in the head section of the site.

Does anything else come to mind in the Perth theme that might prevent hreflang tags from being read?

Hello @hejiemi,

What Polylang version do you use?

Kind Regards, Roman.