About customizing the comment form when using the blank theme named Wordpress

Asked 1 years ago, Updated 1 years ago, 80 views

I'm trying to customize the comment form when using the blank theme named Wordpress, but it doesn't work at all.
I couldn't compete with the code I looked up on the web.

If you are using naked Wordpress and know how to customize the comment form, please let me know the following:

How to Change and Delete Comments Form Sentences (Title of Comment Form, Name (Required), Email Address, URL, etc.)

Thank you for your cooperation.

wordpress

2022-09-29 22:43

3 Answers

Tried installing (using VCCW).
The following is the assumption that the comment form = Leave a Reply is written.

違うI'm sorry if you're talking about a different place.

The file (comments.php) is located in the following location of "wordpress" instead of "naked Wordpress".

wordpress->wp-includes->theme-compat->comments.php

Leave a Reply
Enter from around L.86 (Name, Mail, Website)

is present (it says <?phpelse:?> so it may vary depending on the conditions).

As a supplement, this time I searched under wordpress using the command below.

find.-type f-name '*.php' | xargs grep' (required)'


2022-09-29 22:43

I am a contributor.
Thank you for your comment.

in wp-includes comment-template.php
comment.php
I was only concerned about these two things.

I was not aware of this at all...
wp-includes->theme-compat->comments.php

The theme itself often had comment.php, and I didn't touch the wp-includes very often, so
It was a good hint.

Thank you for introducing the command.
It was very helpful that I could use this in various situations.

I will report the progress once I have actually worked on it.

The following is a supplement.
After posting questions, I boldly changed the theme itself.
I used Blanktheme Underscores, which has comment.php in the theme itself.
In this case, it was relatively easy to customize because there was a lot of information to help you search the web.
"In order to change the language notation of the comment form, we had to use the help of ""poedit""."
(I couldn't complete the detailed wording customization just by touching the script.)


2022-09-29 22:43

I edited Wordpress based on your comment.
wp-includes->theme-compat->comments.php

Verified that L.68 and later edits can be customized.

You can edit the comment heading sentences into Test Sentences by changing the original script as follows:

<h3><?php comment_form_title(__('test sentence'),__('Leave a Reply to %s');?>/h3>

You can edit Leave a Reply to as well.
You can also delete the h3 completely to erase the comment heading.

It seems that you can customize the comments by editing this part directly or making adjustments using the action hook from function.php.

Thank you for giving us a hint in the comments.


2022-09-29 22:43

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.