WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Date of first comment is a larger font (4 posts)

  1. trentor
    Member
    Posted 4 years ago #

    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.

  2. alism
    Member
    Posted 4 years ago #

    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.

  3. trentor
    Member
    Posted 4 years ago #

    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>

  4. trentor
    Member
    Posted 4 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic