[Resolved] Add Sentence in Comment's Section

Home Forums Support [Resolved] Add Sentence in Comment's Section

Home Forums Support Add Sentence in Comment's Section

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #875294
    Rizki

    Hi there,

    I use this code to change the sentence in the comment’s reply title, and it works :

    add_filter( 'generate_leave_comment','generate_leave_comment_text' );
    function generate_leave_comment_text()
    {
    	return 'Yakin Ngga Mau Komen ?';
    }

    Then, how do I add a sentence below the reply title ? http://prntscr.com/nf4kkg

    #875476
    David
    Staff
    Customer Support

    Hi there,

    you can use the Hook Element:

    https://docs.generatepress.com/article/hooks-element-overview/

    Try the below_comments_title hook

    #875481
    Rizki

    Hi David,

    The sentence appears below the comment title http://prntscr.com/nfaxzx, not the reply title http://prntscr.com/nf4kkg.

    #875486
    David
    Staff
    Customer Support

    In that case select the Custom Hook from the list and in the field provided add:

    comment_form_top and reduce the priority to 5.

    #875490
    Rizki

    Yesss it works ๐Ÿ™‚ Thank you David, GP support team are awesome.

    #875498
    David
    Staff
    Customer Support

    Glad to be of help ๐Ÿ™‚

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