WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] XHTML Validation (7 posts)

  1. Guzzo
    Member
    Posted 7 years ago #

    I'm failing validation on a bunch of my single post pages and I can't figure out why it's happening. I get the same type of failure on each page. Can anyone clue me in?

    Here's a <a href="http://validator.w3.org/check?uri=http%3A%2F%2Fguzzothecontrarian.com%2F%3Fp%3D12&charset=%28detect+automatically%29&doctype=Inline&ss=1&outline=1&No200=1&verbose=1">link</a> to one of my failures. Thanks!

  2. Guzzo
    Member
    Posted 7 years ago #

  3. moshu
    Member
    Posted 7 years ago #

    There seem to be an empty class in your list of comments. Check out the comments.php of the theme.

  4. Guzzo
    Member
    Posted 7 years ago #

    Thank you very much for the reply Moshu.

    I knew that there was an empty class, that's why I posted the link. I'm just not smart enought to know "why" I have an empty class, how it happened, and how can I prevent it from happening again. It's only happened in about 20 of my posts.

    I'll take a look at my comments.php to see if I can figure it out, but if anyone knows how I can fix it, please chime in.

  5. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    In your theme's comments.php file, there's a line that looks like this:

    <li id="comment-<?php comment_ID() ?>" class="<?php blogtxt_comment_class() ?>">

    Change it to this:
    <li id="comment-<?php comment_ID() ?>" class="commentclass <?php blogtxt_comment_class() ?>">

    That will fix your issue without any annoying side effects.

  6. Guzzo
    Member
    Posted 7 years ago #

    Thank you for your input Otto, but I don't have that line in my file. I'm still using blog.txt 1.2 and that may have something to do with it.

    I emailed Scott, the blog.txt author, and he recommended that I upgrade. I think I'll take his advice and upgrade both blog.txt and WordPress as soon as I get some time.

    Thank you for your help anyway.

  7. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Well, I looked at the blog.txt theme but I looked at the latest version.

    If you post a copy of your comments.php file (using http://wordpress.pastebin.ca ), then I can tell you what you need to change.

Topic Closed

This topic has been closed to new replies.

About this Topic