• Resolved PatricF

    (@patlamm)


    Bonjour, j’utilse TranslatePress pour la traduction en anglais de mon site. J’utilise l’option de sous-domaine pour avoir un /fr ou /en dans les url.
    Le sitemap généré par SEO Press ne semble pas tenir compte des versions de langues. Les liens générés sont ceux avec le /fr dans l’url.

    Si je regarde le code source d’une page de mon site, les balises HREFLANG sont présentes pour le fr et en.

    Le sitemap devrais contenir ceci si je comprends bien : <xhtml:link rel=”alternate” hreflang=”<var>supported_language-code</var>“>, mais ce n’est pas le cas.

    Pourriez-vous me donner une explication et coup de main ? Merci !

    • This topic was modified 1 year, 7 months ago by PatricF.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hi,

    which version of TranslatePress do you use please?

    As far as I remember you also need their SEO add-on to make it work correctly.

    PS: I answer in English as this is the only allowed language on w.org forums. Thank you for understanding.

    Thread Starter PatricF

    (@patlamm)

    Hi Benjamin, thank you for your reply. I didn’t know about the language rule, so I’m sorry about that.

    I’m currently using TranslatePress 2.5.1, and while searching after my previous post, I found the SEO Pack add-on which needs to be installed in order to generate the Sitemap with language alternatives.

    I saw another post stating that it’s not necessary to specify the alternate language in the Sitemap, as Google will index and find the pages regardless. I’m not sure what to believe.

    Do you know if it’s necessary to specify the alternate language in the Sitemap?

    I think paying 89 euros a year for TranslatePress just to have the right Sitemap is quite expensive. Maybe WPML would be a better choice if it supports language alternates in the Sitemap?

    Thank you for your help

    Plugin Author Benjamin Denis

    (@rainbowgeek)

    Hreflang is the only necessary thing to allow search engines understand your translated content. All multilingual plugins will automatically add this meta to your content in the head tag of your source code.

    More info here: https://www.seopress.org/fr/support/ebooks/referencement-international-avec-wordpress/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Site multilingue et sitemap’ is closed to new replies.