WordPress.org

Ready to get started?Download WordPress

Forums

Problem validating my HTML5 website due to wp_head and Content-Lang (1 post)

  1. geemoney1985
    Member
    Posted 1 year ago #

    Hi!
    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.
    <meta http-equiv="Content-Language" content="sv-SE" />

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic