• Resolved Guzzo

    (@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="https://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!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Guzzo

    (@guzzo)

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

    Thread Starter Guzzo

    (@guzzo)

    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)

    www.remarpro.com 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.

    Thread Starter Guzzo

    (@guzzo)

    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)

    www.remarpro.com 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 https://wordpress.pastebin.ca ), 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.