Skip to main content

HTML Language attribute

Comments

7 comments

  • Mihail Stremenovskii

    Hello!

    Can you please add project URL? 

    Kind regards,

    Mihail

    0
  • Hans-Joachim Loeblein

    Hi,

    the project is

    https://www.brizy.cloud/projects/5918628/editor/page/45282

    Best

    Hajo

    0
  • Mihail Stremenovskii

    Hello!

    Please add some space between code lines and elements:

    <script>
    const html = document.querySelector("html");
    if (html) {
    html.setAttribute("lang", "de");
    }
    </script>

    Kind regards,

    Mihail

    0
  • Hans-Joachim Loeblein

    Hi, I added spaces like you said (see screenshot), but no change (again see screenshot) – it still seems to be set to English instead of German. Here the project again: https://www.brizy.cloud/projects/5918628/editor/page/45282 Any ideas? Thanks!! Hans-Joachim 

    0
  • Permanently deleted user

    HI,

    Please see this article https://support.brizy.io/hc/en-us/articles/360056465871-How-to-change-the-language-HTML-attribute-to-a-different-language ,
     it will help to change the language of your page.

    p.s please, do not reply to non-reply@zendesk.brizy.io email address; your last message was received as spam and we had to recover it.

    Best regards, Nelea.

    0
  • Hans-Joachim Loeblein

    Hi Nelea,

    I was aware of the article - I proceeded as described in the article and still seobility shows, that the language is set to English instead of German.

    Can you please have a thorough look at it? 

    Thanks

    Hajo

    PS: I posted my reply here at the same time when I send the email. Do you check the forum replies? Please confirm, or let me know how to reply ... Thanks!

    0
  • Mihail Stremenovskii

    Hello!

    Thank you for your patience. 

    We are changing the HTML lang using JS, and Google understands it. Unfortunately, when you check your page using some instruments, they won't show you the changes. 

    We will add some changes to add visibility for the instruments as well. 

    So don't worry, if a script is added - it is working.

    Sorry for the inconvenience.

    Kind regards,

    Mihail

    0

Please sign in to leave a comment.