Adding text before the Comment Text Field  

  RSS

fahirsch
(@fahirsch)
New Member
Joined: 12 months ago
Posts: 3
24/11/2018 12:47 am  

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
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 3456
24/11/2018 1:42 pm  

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
(@fahirsch)
New Member
Joined: 12 months ago
Posts: 3
24/11/2018 6:25 pm  

Thanks! I shall try to understand and implement.

Francisco


ReplyQuote
fahirsch
(@fahirsch)
New Member
Joined: 12 months ago
Posts: 3
24/11/2018 7:00 pm  

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 liked
ReplyQuote
Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: