Notifications
Clear all

Adding text before the Comment Text Field

4 Posts
2 Users
1 Reactions
2,510 Views
(@fahirsch)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

I would like to add text before the Comment Text Field.

I guess I could add it in a modified class.WpdiscuzWalker.php file but haven't the slightest idea where.

Or is there a setting that can be modified?

Thanks,

Francisco


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

Hi Francisco,

In this case, you should use the following hooks

  • comment_form_before
  • comment_form_top

More info here:

http://wpengineer.com/2205/comment-form-hooks-visualized/


   
ReplyQuote
(@fahirsch)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Thanks! I shall try to understand and implement.

Francisco


   
ReplyQuote
(@fahirsch)
New Member
Joined: 6 years ago
Posts: 3
Topic starter  

Thanks for the link. Studying I realized that I could just modify the single.php file of my theme just before comments_template().

Francisco


   
Tom reacted
ReplyQuote
Share:
Scroll to top