Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Add the below code in finctions.php file of your child theme:

    function oceanwp_modify_comment_form_fields( $fields ) {
    
        $commenter = wp_get_current_commenter();
    
        $fields['author'] 	= '<div class="comment-form-author"><label for="author" class="screen-reader-text">'. esc_html( 'Enter your name or username', 'screen reader text for comment author', 'oceanwp' ) . '</label><input type="text" name="author" id="author" value="'. esc_attr( $commenter['comment_author'] ) .'" placeholder="'. esc_attr__( 'Name', 'oceanwp' ) .'" size="22" tabindex="0" class="input-name" /></div>';
    
        $fields['email'] 	= '<div class="comment-form-email"><label for="email" class="screen-reader-text">'. esc_html( 'Enter your email', 'screen reader text for comment author email', 'oceanwp' ) . '</label><input type="text" name="email" id="email" value="'. esc_attr( $commenter['comment_author_email'] ) .'" placeholder="'. esc_attr__( 'Email', 'oceanwp' ) .'" size="22" tabindex="0" class="input-email" /></div>';
    
        $fields['url'] 		= '';
    
        return $fields;
    
    }
    
    add_filter( 'comment_form_default_fields', 'oceanwp_modify_comment_form_fields' );

    PS- You can change/edit the code as per your need.

    Thread Starter neljohn.dc

    (@azakaloz)

    Thanks so much abhi it works.

    Glad to hear that the issue has been fixed!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Comments field on the events calendar’ is closed to new replies.