Support » Fixing WordPress » Date of first comment is a larger font

  • Resolved trentor

    (@trentor)


    I’ve about got my site working and looking the way I want it, but for the life of me I cannot figure out why the date is a larger font only for the first comment. All successive comments look fine.

    Here’s a link to see what I mean… http://www.reflectionsofthedrive.com/about/

    Can someone help me out? I’m going crazy looking over the CSS.

Viewing 3 replies - 1 through 3 (of 3 total)
  • It’s not the CSS. Try taking a look at your themes comments.php file.

    For the first comment, you’ve got an extra <A name="comments"> and closing </A> which I think can be removed. Then the A href="http://www.reflectionsofthedrive.com/about/#comment-2" title="Comment Permalink">Jul 9th 2009</A> (for example) isn’t sitting inside the date span tag.

    It might be worth running your pages through a code validator too as it’s giving a few errors.

    Thanks! You nailed it with the extra <A name="comments">. I took that out and it looks normal again.

    I’m not sure what you mean on the other part. It looks to be inside the date span tag in comments.php

    <span class="date"><a href="#comment-<?php comment_ID() ?>" title="Comment Permalink"><?php comment_date('M jS Y') ?></a></span>

    As far as that code validator, man, that’s enough to drive one crazy. I’ve done very little aside from formatting changes, so I’m a little surprised at how poorly some of the theme and plugin code is written. Granted, some of that validator is just being way too picky…like closing br tags.

    good to know though. thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date of first comment is a larger font’ is closed to new replies.