• Resolved user9876789

    (@user9876789)


    Hello, we have a multisite and one of the sites has Weglot on it. This site also has hreflangs listing out all the language versions. We are going to be adding our own hreflang tags and don’t want duplicates. Is there a way to remove the ones Weglot add and use our own or edit the ones Weglot add?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi,

    hope you’re fine ? Sorry for the issue you’re facing. I’ve create an issue and get you in touch when I’ve a fix to prevent hreflangs duplication on each site. For the moment you can use this filter : add_filter( ‘weglot_add_hreflang’, ‘__return_false’ ); to prevent weglot add hreflangs and put it on your side.

    Hope it’s help

    Regards

    Thread Starter user9876789

    (@user9876789)

    Thanks, to clarify, weglot is not adding duplicate hreflangs – we are going to be adding our own hreflangs and wanted to turn off weglots. I will try the filter to turn them off thanks

    Plugin Contributor Edson Galina Fortes

    (@glx77)

    Hi @user9876789,
    hope you’re fine? Do your still facing your issue or it’s ok for you ?

    Regards

    Thread Starter user9876789

    (@user9876789)

    Hello, yes thanks the filter change went live earlier in the week and it removed the hreflangs added by weglot ?? thank you

    Hello,

    The Weblot plugin adds 2 hreflang tags to the website.

    <link rel=”alternate” href=”” hreflang=”nl“/> <link rel=”alternate” href=”” hreflang=”en“/>

    I would like to have the “en” tag deleted and have just one hreflang tag. How can I delete the “en” tag?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hreflangs’ is closed to new replies.