Support » Fixing WordPress » validating wp_head script: attribute "type" not specified

  • I’m currently validating a site XHTML 1.0 Strict. One of my errors is:

    Line 31, Column 40: required attribute “type” not specified
    <script src=’/google_analytics_auto.js’></script></head>

    The attribute given above is required for an element that you’ve used, but you have omitted it. For instance, in most HTML and XHTML document types the “type” attribute is required on the “script” element and the “alt” attribute is required for the “img” element.

    Typical values for type are type=”text/css” for <style> and type=”text/javascript” for <script>.

    This is within the wp_head, but I cannot find anywhere where I can edit it and insert the type. What’s more, I do not even have a google analytics plugin installed. Could someone please tell me the name of the file at least where I can edit the code to add this? I know that it doesn’t make a difference, but I want the site to validate. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • It’s probably in your theme files.

    If you download the files, use a tool like notepad++ to search across all files.

    My guess is header.php or functions.php

    Thanks for the suggestion. I downloaded the files and didn’t find it. Does anyone else have any idea?


    Can you tell me what is your plugins i have the problem if we have concurrent plugins i can find that where is it.



    Are you using a plugin for google analytics?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘validating wp_head script: attribute "type" not specified’ is closed to new replies.