Support » Fixing WordPress » XHTML Validation

  • Resolved Guzzo


    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="">link</a> to one of my failures. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • There seem to be an empty class in your list of comments. Check out the comments.php of the theme.

    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.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    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.

    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.

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    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 ), then I can tell you what you need to change.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘XHTML Validation’ is closed to new replies.