• Resolved ancrerouge

    (@ancrerouge)


    Hello and thank you for this great plugin !

    I have two websites linked with this plugin.
    On the English site for example, I added the French language and a flag.
    In the source code I have the following line:

    <! - alternate languages ->
    <link rel = "alternate" hreflang = "fr-FR" href = "https://www.dr-meyer-orthopedie.fr/operations/" />

    But I am working with an SEO who would like the current page link to show up, so have:

    
    <! - alternate languages ->
    <link rel = "alternate" hreflang = "en" href = "https://www.dr-meyer-orthopaedics.com/operations/" />
    <link rel = "alternate" hreflang = "fr-FR" href = "https://www.dr-meyer-orthopedie.fr/operations/" />

    How can I add the line with the current site?

    Best regards,
    Olivier

    • This topic was modified 4 years, 1 month ago by ancrerouge.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    Bonjour Olivier, I’ll have to have a look in the plugin code and see how to add support for this function. I will hopefully have time this week-end.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Sorry for the lack of response. The issue with implementing this functionality is that Bilingual Linker does not know the language of the base site. You only configure it to be able to specify link for an alternate language of the pages.

    I could add extra fields to be able to specify the base language of the site and add an hreflang link in the page headers to the current page permalink if you think that would help. Can you confirm?

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    I don’t know if it’ll still be useful to you, but I added the feature you requested in version 2.3.5 of Bilingual Linker.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add current website hreflang’ is closed to new replies.