• So I’m making a theme from scratch. My comments.php file is literally just this right now

    <ol class="commentlist">
    <?php wp_list_comments(); ?>
    </ol>
    
    <?php comment_form(); ?>

    And I output this in the single.php file with simply this call
    <?php comments_template(); ?>

    So without me really understanding it (and not able to back track to the source grr) this outputs everything I need. All the comments and then the comment form itself.

    I’ve been reading the codex for a few days to find out how I can manipulate and customize the comment form. So far I have not see any clear method or SOURCE file to edit to output it the way I want.

    Like lets say for example I want the comment form to list the input field first and then the labels for those inputs, so that way the label “Name” is sitting to the right of the name field instead of to the default left, Where and how would I make that happen?

    Maybe if someone could lead me to just the right file or source at the very least I could find my way. I’m lost. Thanks

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

    (@randyttp)

    I think from what I have found I can use $arg some how to customize it.

    But how actually is it used? Like to get something simple done like I listed above, what format would I write out? And would I stick that in the comments.php file?

    Thread Starter randyttp

    (@randyttp)

    This doesnt work. Any ideas? Anyone around to school me?

    $fields =  array(
            'author' => '<p class="comment-form-author">' . '<input id="author" name="author" type="text" value="' . esc_attr(
    $commenter['comment_author'] ) . '" size="30"' . $aria_req . ' />' .
    	                '<label for="author">' . __( 'Name' ) . '</label> ' . ( $req ? '<span class="required">*</span>' : '' ) . '</p>',
    );

    comment_form($fields);

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Where do you customize the default comment form?’ is closed to new replies.