• I was just doing some checking of my site and I get a validation error on my comments page saying it’s missing an LI class. The code in question is the following:

    <?php if (‘alt’ == $oddcomment) $oddcomment = ”;
    else $oddcomment = ‘alt’;
    ?>

    What it does is every other comment LI tag, it looks like:

    li class=”alt”

    which validates but every other comment it looks like:

    li class=””

    without the word alt. Is this a bug or do I need to add something to my comments.php file? I looked at the default template and it’s the same, so I’m stumped.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hlwt

    (@hlwt)

    bump.

    Does the: (li class=””) have a specific “class” set for it in the CSS file or not? So it just sits there as this: li class=”” in the comments.php file?

    If so, try adding a “class” for it in the CSS file maybe? Like that line: li class=””
    Make like: li class=”oddcomm”

    And then in the CSS file, give it a class like:

    .oddcomm{
    margin:whatever;
    padding:whatever;
    color:#whatever;
    }

    That’s all up to you though of course lol.. If you’d like, I’ll post in what I have for mine..

    Or just remove that class=”” part from it and use this in the CSS file maybe, then style it accordingly..:
    .commentlist li

    spencerp

    I dunno though, I’m not sure what theme you’re using lol…a link might help. =P

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