WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Content-Language meta is obsolete in HTML5 (2 posts)

  1. udi86
    Member
    Posted 2 years ago #

    When the plugin is used with an HTML5 theme it produces a validation error:

    "Using the meta element to specify the document-wide default language is obsolete. Consider specifying the language on the root element instead."

    The Content-Language meta is echoed in the qtrans_header function, but that function also outputs essential CSS tags, so I duplicated the qtrans_header function, commented out the meta line, then removed the original action and added the modified one.

    I guess this could be easier if the qtrans_header function would be split, and there would be a separate action for just outputting the Content-Language meta.

    http://wordpress.org/extend/plugins/qtranslate/

  2. 3pepe3
    Member
    Posted 1 year ago #

    in my case I just don't like the output on the <head> made by qTranslate...

    add_action('init', 'remove_header_info');
    function remove_header_info() {
    	remove_action('wp_head', 'qtrans_header');
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic