Forums

add text to reply intro (6 posts)

  1. bvisp
    Member
    Posted 1 year ago #

    I would like to edit the statement for the reply/comment intro.
    "Your email address will not be published. Required fields are marked*"

    Where can I find it?

    Barbara

  2. zoonini
    help me help you
    Posted 1 year ago #

    It depends on your theme.

    Check comments.php & functions.php to start.

    If you don't see it there, let us know what theme you're using and we'll take it from there.

  3. Chip Bennett
    Member
    Posted 1 year ago #

    You need to hook into the comment_form() function that is outputting the comment reply form.

    Specifically, you need to pass the comment_notes_before argument to the argument array, e.g.:

    <?php
    $new_defaults = array (
         'comment_notes_before' => '<p class="comment-notes">' . __( 'YOUR TEXT HERE.' ) . '</p>'
    );
    comment_form( $new_defaults );
    ?>

    Just change YOUR TEXT HERE to whatever you want to display.

  4. zoonini
    help me help you
    Posted 1 year ago #

    Nice solution - thanks, Chip. In case the OP isn't familiar with doing this, just to confirm, she would add this to the functions.php theme file, right?

  5. Chip Bennett
    Member
    Posted 1 year ago #

    In case the OP isn't familiar with doing this, just to confirm, she would add this to the functions.php theme file, right?

    No; that code replaces the call to comments_form(), in the comments.php template file.

  6. zoonini
    help me help you
    Posted 1 year ago #

    Ah - gotcha, thanks for clarifying.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.