Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have energyshop.se which is a webshop in wordpress but on a blank theme so it doesnt look like a blog.

I have only 1 validation output error when Im trying to validate the html through validator.w3.org and it reads like this:

Line 27, Column 54: Using the meta element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead.

But I have a head and meta like this:

<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>

Although if i inspect the page this row come later down, propably overriding the top one:

<meta http-equiv="Content-Language" content="sv-SE" />

But its not in any of my .php files but I think in <?php wp_head?> which is in the header.php

How do I edit that? Because I tried to remove it, but then other thing in my header.php disappeared which I needed. But then I got a clean validation too with no errors!

So whats the best solution for this?

share|improve this question
have you tried searching your theme and plugin files for Content-Lang? – Milo Feb 12 at 3:19
i forgot to put some text in code, now you see what i mean. yes but maybe not in everyone. – Emanuel Olsson Feb 12 at 3:37
2  
if it's appearing in your document head and isn't in header.php, then it's being added by something hooked to wp_head. start with your theme's functions.php and look for functions hooked to the wp_head action. WordPress itself does not add this meta tag, it is your theme or a plugin. – Milo Feb 12 at 3:42
Found it in a plugins php, more spcifically qtranslates_hooks.php which is included in the qtranslate plugin! – Emanuel Olsson Feb 12 at 15:56

closed as too localized by toscho Mar 14 at 23:49

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.