Forums

v1.5 Comment template changes (13 posts)

  1. Daisyhead
    Member
    Posted 4 years ago #

    I just upgraded to V1.5 and want to tweak the comment output "template." In earlier versions this was done by editing the wp-comments.php page. How do I do this editing with the new version?

    Thanks!

  2. alphaoide
    Member
    Posted 4 years ago #

    If you're using a theme, find comments.php in the theme's folder. If the file does not exist, copy wp-comments-post.php from the WP's root directory to theme's directory as comments.php.

    And modify the file to your liking.

  3. Daisyhead
    Member
    Posted 4 years ago #

    I don't see anything to change though. I want to change the output, etc. Like where it says "Commenter Says:" I don't see that text to modify.

    And I created my own theme, if that helps. This is the only frustrating part I've encountered during the upgrade.

    Thanks!

  4. Daisyhead
    Member
    Posted 4 years ago #

    FYI Alphaoide - that didn't work. It just threw a bunch of errors. Basically I want to just tweak the look of the comments page. My comment box is too big and runs into my sidebar (http://www.daisyhead.org/?p=1489#comments) and there are a few other things I'm anal about. I'm looking through all my files, but am unble to find where to change this.

  5. alphaoide
    Member
    Posted 4 years ago #


  6. Daisyhead
    Member
    Posted 4 years ago #

    Actually, I think I got it. I just put the comments.php file from one of the default themes into my own theme folder. Seems to be working.

  7. Daisyhead
    Member
    Posted 4 years ago #

    The only thing that's bugging me, my text for the commenter name is a different color than the rest of the text and I can't figure out why.

    Example: http://www.daisyhead.org/?p=1485#comments

    Can't figure out why the words "Said" and "on" aren't the same color as the rest of the text. Anyone have any ideas? I've checked and can't seem to see any formatting. It's strange.

  8. alphaoide
    Member
    Posted 4 years ago #

    They look the same to me.

  9. oriecat
    Member
    Posted 4 years ago #

    The commenter names are a diff color because they are links.

    What color do you want said on to be? The same as the comment itself?

  10. alphaoide
    Member
    Posted 4 years ago #

    Oh, I see it.
    It's because the text is enclosed in <p> while "Said" and "on" are enclosed in <small>. Just make the appropriate changes in the css file.

  11. fortius
    Member
    Posted 4 years ago #

    If your file named comments.php you must delete this
    "is_single() " in this (single.php or index.php) line :

    <?php comments_template( is_single() ); // Get wp-comments.php template ?>

    now its working in my blog...

  12. Daisyhead
    Member
    Posted 4 years ago #

    Fortius, I don't appear to even have that line in my comments.php file. LOL. This is crazy. I've tried putting that particular text into paragraph tags, but it won't format the paragraph right. I'm still playing with my .css file to see if I can fix it from there.

  13. Daisyhead
    Member
    Posted 4 years ago #

    Thanks to everyone for their input on this problem. A little css tweaking and the problem is fixed. I am LOVING the new version!!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.