[Resolved] How to change comment form placeholders?

Home Forums Support [Resolved] How to change comment form placeholders?

Home Forums Support How to change comment form placeholders?

Viewing 4 posts - 16 through 19 (of 19 total)
  • Author
    Posts
  • #627066
    Rizki

    Hi all,

    I tried the code and nothing has changed, is there something wrong with my code ?

    add_filter( 'comment_form_default_fields', 'tu_adjust_comment_form_fields' );
    function tu_adjust_comment_form_fields( $fields ) {
        return array(
            'author' => '<label for="author" class="screen-reader-text">' . esc_html__( 'Name', 'generatepress' ) . '</label><input placeholder="' . esc_attr__( 'Nama Lengkap', 'generatepress' ) . ' *" id="author" name="author" type="text" value="' . esc_attr( $commenter['comment_author'] ) . '" size="30" />',
            'email' => '<label for="email" class="screen-reader-text">' . esc_html__( 'Email', 'generatepress' ) . '</label><input placeholder="' . esc_attr__( 'Email Aktif', 'generatepress' ) . ' *" id="email" name="email" type="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" size="30" />',
        );
    }

    I apply it in https://panduanesia.com

    #627071
    Leo
    Staff
    Customer Support
    #627073
    Rizki

    Thanks Leo, it’s work ๐Ÿ™‚

    #627074
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

Viewing 4 posts - 16 through 19 (of 19 total)
  • You must be logged in to reply to this topic.