[Resolved] Modify comment box

Home Forums Support [Resolved] Modify comment box

Home Forums Support Modify comment box

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1182134
    Samuel

    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?

    #1182353
    David
    Staff
    Customer Support

    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

    #1182483
    Samuel

    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?

    #1182555
    David
    Staff
    Customer Support

    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.

    #1182567
    Samuel

    resolved. thx!

    #1182683
    David
    Staff
    Customer Support

    You’re welcome

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.