Ready to get started?Download WordPress


validating wp_head script: attribute "type" not specified (5 posts)

  1. aliciainbrooklyn
    Posted 1 year ago #

    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!

  2. jibbius
    Posted 1 year ago #

    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

  3. aliciainbrooklyn
    Posted 1 year ago #

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

  4. serkan.nyc
    Posted 1 year ago #

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

  5. jibbius
    Posted 1 year ago #

    Are you using a plugin for google analytics?

Topic Closed

This topic has been closed to new replies.

About this Topic