Joy
(@joyously)
Most themes use the core WP functions for the comments. There are a lot of filters you can use to adjust them, which is what plugins are doing.
1. To add new fields, you have to add code to show the input field, and separate code to do something with the data. This should be in a plugin.
2. A child theme can make small changes in template files to check for the conditions you want and then change the form. But you can change it through filters, so it could be in a plugin.
3. The title is likely output in the theme, unless it just falls back to the default. Most themes would have a comments.php file which has some markup around the function calls for get_comments_number(), the_comments_navigation(), wp_list_comments(), comment_form(). This comments template is loaded with comments_template(), which can be filtered.
4. Filter ‘comment_form_submit_button’.
See https://developer.ww.wp.xz.cn/?s=comment
(@sdukes49)
6 years ago
I hope I’m in the right forum. I have wanted to change the WP comment form and tried many, many plugins to do so. I don’t like any of them. So, I have decided to just go back to the standard, boring WP Comment form. But, I need to know a couple of things and can’t seem to find the exact information I need. If you could please give me some links to follow up with I would appreciate it so very much.
1. How do I customize the form to allow an image upload field?
2. How do I customize the form to specific pages? Like on one page I need the website field, but on another page, I don’t; on one page I need an image upload field, but on another page, I don’t. Is this possible?
3. How do edit the title? And my current title is not showing up on mobile devices – any ideas there?
4. How do I edit the Post Comment button to say Submit?
The page I need help with: [log in to see the link]