Title: Customize Comment
Last modified: May 31, 2021

---

# Customize Comment

 *  Resolved [epicjono](https://wordpress.org/support/users/epicjono/)
 * (@epicjono)
 * [5 years ago](https://wordpress.org/support/topic/customize-comment-2/)
 * Hi, I’d like to make some changes to the native WordPress comments. I tinkered
   with comments.php and comments-link.php in my child theme, but I wasn’t successful.
   I want to change the title of the comment section, and also remove the option
   to submit a website. Any help is appreciated!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcustomize-comment-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [5 years ago](https://wordpress.org/support/topic/customize-comment-2/#post-14503723)
 * Check out lines 9-11 in comments.php. That’s where the `<h2>` element with the
   title is created. Right now, it uses the `comments_number()` function to update
   the title text based on the number of comments, but you could replace all of 
   that with plain text if you’d like.
 * As for removing the website option, you can start by copying the `ct_period_update_fields()`
   function into your child theme’s functions.php file. This function creates the
   input fields for the comment form including the name, email, and website field.
   Update the URL field as follows:
 * `$fields['url'] = '';`
 * Instead of outputting the paragraph element with the input, you’re returning 
   an empty string, which will effectively remove the website field from the form.
 *  Thread Starter [epicjono](https://wordpress.org/support/users/epicjono/)
 * (@epicjono)
 * [5 years ago](https://wordpress.org/support/topic/customize-comment-2/#post-14504482)
 * Hey Ben,
 * For the comment title, I was talking about the “Leave a Comment” title. I believe
   lines 9-11 are for the “Be first to leave a comment” or “## Comments” text. I’m
   trying to change “Leave a Comment” to something else that can kind of encourage
   them a little more.
 * And also, I’m not sure where to find the specified function – I searched in a
   few different files.
 * Thank you!
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [5 years ago](https://wordpress.org/support/topic/customize-comment-2/#post-14507619)
 * Sorry for misunderstanding. The solution in this case is to add a new argument
   to the `comment_form()` function on Line 24 of comments.php. You can update it
   like this:
 *     ```
       comment_form( array(
             'title_reply_before' => '<div id="reply-title" class="comment-reply-title">',
             'title_reply_after'  => '</div>',
             'title_reply'        => 'Tell us what you think'
   
           ) );
       ```
   
 * In my example, I’ve added the `title_reply` argument, which is how we can change
   the title text that displays before the form. You can edit the text in quotes
   to whatever you’d like.
 * As for the `ct_period_update_fields()` function, you can find it on Line 167 
   of the functions.php file.
 *  Thread Starter [epicjono](https://wordpress.org/support/users/epicjono/)
 * (@epicjono)
 * [5 years ago](https://wordpress.org/support/topic/customize-comment-2/#post-14508078)
 * Perfect, it all worked, thanks!
 *  Theme Author [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * (@bensibley)
 * [5 years ago](https://wordpress.org/support/topic/customize-comment-2/#post-14508287)
 * You’re welcome! Stay in touch if you need anything else.

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

The topic ‘Customize Comment’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/period/1.750/screenshot.png)
 * Period
 * [Support Threads](https://wordpress.org/support/theme/period/)
 * [Active Topics](https://wordpress.org/support/theme/period/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/period/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/period/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)

 * 5 replies
 * 2 participants
 * Last reply from: [Ben Sibley](https://wordpress.org/support/users/bensibley/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/customize-comment-2/#post-14508287)
 * Status: resolved