Elxis CMS Forum
Support => Technical support => Topic started by: seadhna on February 20, 2017, 12:53:50
-
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?
-
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.
-
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.
-
When ready please confirm me that the problem is solved.
-
Dear @seadhna, please confirm if the reported issue is solved.
-
Sorry for delay. I had sent PM to datahell. yes, this problem was solved. Many thanks.