ThemeShaper Forums » ThemeShaper WordPress Themes


W3C validation of tutorial site code is a mess. Help!

(3 posts)
  • Started 9 years ago by adhdcelt
  • Latest reply from sharper
  • This topic is not resolved
  1. adhdcelt

    Well, I just finished the tutorial, created all the files by copying the code from the web site. Alas, I had to remove the line numbers, and I had to replace the <!-- -->, as they didn't paste in as two dashes on each end when I copied the code. After that, I plugged a couple of pages into the W3c validation service at and had a mess on my hands. It wouldn't read the files, and I got this message.
    Sorry! This document can not be checked.
    Sorry, I am unable to validate this document because its content type is application/octet-stream, which is not currently supported by this service.
    So, I copied the code directly into the direct output window and got a rash of errors and warnings.

    As careful as I was in the process, I figured I made mistakes when editing the line numbers and the <!-- --> stuff. Then, when I saw the W3C validation on the first two or three files I checked, I couldn't believe that the rash of errors were all my doing.

    Alas, I went to this site:
    and copied the code for the header.php file since it had the DOCTYPE in it. I had the same problem with the W3C validation: It didn't recognize the file type and wouldn't attempt to validate it. So, I pasted the code into the direct output window and got 10 errors and 14 warnings.

    I get a site when I look at it, but W3c says the code is a mess.

    I used the validation page at:
    Should I use a different validator?
    What's goin' on.
    Am I doin' something wrong?
    I have an associates degree in programming from a few years ago, so I understand fundamental code structure, and even though I've built a couple of sites on my own, this is the first time I have tried to construct a Wordpress theme from, so-to-speak, scratch.
    Am I about to learn something, here?
    Any help is appreciated.

    Posted 9 years ago #
  2. Would love to help. Do you have your site live somewhere where we can look at it?

    Is this a Wordpress theme you built with Thematic?

    Posted 9 years ago #
  3. You can quickly clean up the mess of code Google ... Then validate your page once again using the

    Posted 9 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.