No hreflang and Lang attributes

Posted in: Newspaper
Post count: 405

I am getting errors and warnings in SEMRush, Bing Webmaster. Bing says pages are missing language attribute. While SEMRush says No hreflang and Lang attributes >
Perform the following:
– Add a lang attribute to the <html> tag, e.g., “<html lang=”en”>”
– Add a hreflang attribute to your page’s <head> tag, e.g., <link rel=”alternate” href=”http://example.com/&#8221; hreflang=”en”/>

So we need to fix this. I asked to yoast devs and they said, theme is missing these attributes. Someone please help.

@Calin

Post count: 35449

Hi,
This seems to be strange, our theme has that code added -> https://i.imgur.com/EHvDiD4.png and is no need by extra plugin for it.
Indeed when I checked your website, those are not there, maybe it is from an extra plugin that you are using for optimize the website, please make a test only with theme plugins. Also if you are using child theme, please test it with the parent theme.
Let me know the results!
Thank you!

Post count: 405

Hi Calin, we are not using any child theme. To optimized you mean SEO plugin or Cache Plugin?

Post count: 35449

Hi,
That depends, but most of the time is from cache plugin, but to be sure, if you want you can make a test using only theme plugins.
Let me know the results!
Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.