Support > Technical support

Errors in hreflang tags - no return tags

(1/2) > >>

seadhna:
Hi there,
Google Webmaster Tools is returning errors on some alternate language pages, stating that these pages should contain links back to the original language. I see in the code of the alternate languages, there is no hreflang tag back to the English-language (primary language) version of the website - only to other language versions. e.g. on the French version of the page:

<link rel="alternate" hreflang="es" href="http://www.example.org/es/xxx.html" />
<link rel="alternate" hreflang="fr" href="http://www.example.org/fr/xxx.html" />

Is it possible to include a link to the primary language version here?

datahell:
Open this file:
includes/libraries/elxis/document.class.php
and comment line 396 (or somewhere near that):

//if ($lng == $elxis->getConfig('LANG')) { continue; }

Tell me if the problem was solved.

seadhna:
Great, thanks! This now has given the link to the English-language (primary language) version of each page in the source. I guess it will take 24-48 hours for Google webmaster tools to update.

datahell:
When ready please confirm me that the problem is solved.

webgift:
Dear @seadhna, please confirm if the reported issue is solved.

Navigation

[0] Message Index

[#] Next page

Go to full version