• Resolved sajtfokus

    (@sajtfokus)


    Hi, I have made a mistake while choosing my default language code, and I have entered the wrong 2 letter code.

    Instead of using sr, I have used rs by mistake. Now, when I try to change that, all content is blank, so it seems like I have to recreate all content in appropriate language, which isn’t something that I can do at this point.

    Is there any way to change this without messing the whole website?

    Google webmaster is reporting this – Google has detected that some pages on your site have implemented the rel-alternate-hreflang tag incorrectly. In particular, there seems to be a problem with incorrect language and region codes, or incorrect bi-directional linking (if page A links with hreflang to page B, there must be a link back from B to A as well).

    Thanks,
    Nik

    https://ww.wp.xz.cn/plugins/qtranslate-x/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Clause

    (@johnclause)

    I am sorry about this trouble, @sajtfokus, yes, “Startup Guide” warns about proper choosing of the language codes. It is hard to change it later.

    You got two options:

    1. Dump the db into an .sql file, replace all tags [:rs] with [:sr] and then import .sql file back into the database.

    2. Keep using ‘rs’ and tune option “Locale at front-end” in language property page /wp-admin/options-general.php?page=qtranslate-x&edit=rs, if your the only problem is the code at front-end.

    Thread Starter sajtfokus

    (@sajtfokus)

    Hi John,

    Thanks for your help. I have tried both suggestions and none is working.

    1 – Nothing happens except the fact that I am getting 3rd language enabled without any content.

    2 – Nothing happens as well. I don’t see any difference with this option enabled. What should I expect here to happen? RS is still appended to the url (and not SR as I would expect)

    Thanks,
    Nik

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Incorrect hreflang implementation’ is closed to new replies.