WordPress.org

Ready to get started?Download WordPress

Forums

trying to customize comments_template (4 posts)

  1. 99roblems
    Member
    Posted 1 year ago #

    Hello
    tearing my hair out trying to do something that seems pretty simple -

    - just need to add a description to the actual comments box in the comments section of my site. The Name, Mail and Website boxes are all labeled, but the comments box has no label next to it and I simply want to add something like "Write your comment here", but can't find any way to customize it. I've read that it should be do-able in the comment.php file, but when I open that up I can't find where to make the change.

    comments_form appears to be easier to customize, but when I try to switch over to that it the comments that are already there disappear. I'd be fine with doing it this way or some other way too, just need to have everything there, and have the comments box labeled.

    Can anyone help me please? thanks!!

    here's the page that i'm working on: http://www.visionlossandpersonalrecovery.com/jean-courcy/

  2. Somegirlwitha.com
    Member
    Posted 1 year ago #

    for each input field, you should be able to change the value...

    <input type="text" name="comments box" value="Write your comment here">

    is that what you're looking for?

  3. 99roblems
    Member
    Posted 1 year ago #

    Thanks Somegirlwitha.com, that's helpful, but not exactly what I need -

    My problem is that to call the previous comments and the comment box, i'm just using this code:

    <?php comments_template('', true); ?>

    it just brings everything in.

    So what I want to do is customize what it is bringing in, but I can't figure out where that is, or how to do that. I've found a lot of stuff on easy ways to customize the comments_form, but can't seem to find much on comments_template

    does that make sense?

  4. Somegirlwitha.com
    Member
    Posted 1 year ago #

    comments_template() is located in wp-includes/comment-template.php

    is that what you're looking for?

Topic Closed

This topic has been closed to new replies.

About this Topic