Archived topic
Modify comment box
5 replies · Started by Samuel on March 2, 2020
I have read some posts here in the forum, but I cannot find the solution to my problem.
I wanna put some HTML Text between the Titel and the Box: https://www.screencast.com/t/hux3unfKSV
I use this code:
add_filter('generate_leave_comment','generate_custom_filter_name');
function generate_custom_filter_name()
{
return 'Say this instead';
}
But this change only the Titel.
What can I do so that I can insert text there?
Hi there,
try this:
1. Create a new Hook Element:
https://docs.generatepress.com/article/hooks-element-overview/
2. Add your content
3. Select Custom Hook from the Hook List and then enter comment_form_top in the field
4. Set your Display Rules to Posts > All Posts
Thanks! It work fine!
I check out the visual guide, but cant find comment_form_top
How can i find or define the Custom Hook?
comment_form_top is a Hook within the WordPress comments function, not a Theme Hook.
The Simply Show Hooks plugin is really handy to find what other hooks are on a page.
resolved. thx!
You're welcome