• Hi there.

    I’ve been doing some simple work with WordPress and making custom themes for clients from scratch using Starkers. Only thing is, the last time I’ve done a lot of WP work was during 2.8, and now that I’m redoing and doing new sites I’m totally confused by the change of how the comment form is handled.

    I’ve searched and searched but haven’t found any real clear answers to my questions: how and where do I edit the html of the comment form? I understand that it is a PHP function now (my PHP knowledge is very low, mind you), but how can I edit it?

    If this has been brought up a lot before, sorry for not being able to find any relevant posts!

    Many thanks in advance — I’m in quite a pickle!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi swthate,

    I feel your pain. I went through the same kind of struggle when I had to tackle a very customized comment section for a theme I did last year for a client.

    Here is a post from Justin Tadlock I found that finally got me moving again: http://justintadlock.com/archives/2010/07/21/using-the-wordpress-comment-form

    I hope this helps you like it did me!

    Thread Starter swthate

    (@swthate)

    Thanks, that page does help a bit.

    I’m still having a little bit of trouble with it, though. I’ll list the things I want to change, maybe that’ll help a little more.

    1. This is for a funeral home website, so all the labels and text that show “comment” need to be changed to “tribute”. So, I went to where that page talked about changing the comment_field, hoping to easily change the <label for=”comment”> to <label for=”tribute”>. He gives a line of code to accomplish that, but I’m still confused as to where I put that line of code. Like I said, I’m not good in PHP, so I don’t always know what things may or may not be implied with it. I imagine I put the code inside the comment_form function, but is it nested in its own parameter, or what?

    2. Right now the comment form and the label for it are on the same line when the page is rendered, I just want to put a line break between the field label and the field itself. Or would that be simply solved by adding some CSS to the field itself and changing its display?

    3. I want to delete all the text that says “You may use these HTML tags and attributes: …”

    Sorry if I’m a little dense 🙂

    Thanks for the help so far, though!

    Thread Starter swthate

    (@swthate)

    Oh, wait, I think I figured it out. I was doing everything right, except for editing the wrong part of the line of code that site provided. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘comment_form function confusion!’ is closed to new replies.