Declare language of a website

#500480
  • Hello, I want to use the lang attribute in it’s HTML tag. My website is only in one language. How can I do this through Rank Math plugin ?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Our plugin doesn’t manage the lang attribute. The lang attribute is usually added by the theme provider in the header file that gets loaded on the website.

    Most themes use the function language_attributes() to do this. You can look at the source code of the page and look for the opening HTML tag to see the attribute present there. If for some reason the current theme you have is not adding that, you can add it manually to the header file of the theme inside the html tag.

    For further inquires or assistance regarding this matter, you may also get in touch with your theme provider.

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Declare language of a website’ is closed to new replies.