I have a question regarding the Leave a Repl
y section at the bottom of the Twenty Thirteen
WordPress theme. At the bottom of a page, you will see the area that asks for your Name, Email, Website, and then an option to write in a Comment.
I am wondering if it is possible to change the word Website, to Agency. I looked in a couple files, but can’t seem to find this area in the code. I’ve looked in the Comments.php
, as well as the content.php
file. At the bottom of the content.php
file, I do see the area that I believe is the section that may need to be edited but unsure how to go about doing this.
Here is a screenshot of the area that I am talking about.
@user2898224:
The file you are looking for is the WordPress core file ‘wp-includescomment-template.php’.
You need to change line #2058, which looks like this:
All you have to do is change ‘Website’ to ‘Agency’ on this line.
Keep in mind that this change modifies a WordPress core file, so if you ever want to upgrade your WordPress installation, you will need to make the same change again after upgrading.
Modifiying WordPress core files is also not a very good idea, but in this case the change is small enough that you can get away with it.
In the event that you do not want to modify (nor should you) a WordPress core file, you can also do the following:
In the Twenty Thirteen theme’s ‘comments.php’ file, replace this call to the comment_form function:
With this block of code (and yes, all of this code is necessary):
This may seem like a more complicated way to go about changing just one word on the comment form, but it will keep you from messing with any of the WordPress core files.
In the Comments.php for the theme, replace the parameterless call to comment_form (at the bottom). You can pass in your modifications there. No need to modify the Core. See comment_form API reference.
You can add or modify the comment form field by wordpress filter through functions.php of your theme.
Try to add this to your functions.php
or you can add agency input as new field