Skip to content

Instantly share code, notes, and snippets.

@premanshup
Last active April 17, 2021 07:52
Show Gist options
  • Save premanshup/17f8618720f4fd5d1eb7db00eee8a44f to your computer and use it in GitHub Desktop.
Save premanshup/17f8618720f4fd5d1eb7db00eee8a44f to your computer and use it in GitHub Desktop.
Change the default row and col value of Textarea for comment in Astra
add_filter( 'astra_comment_form_default_markup', 'astra_edit_comment_textarea_row_col' );
function astra_edit_comment_textarea_row_col( $args ) {
$args['comment_field'] = '<div class="ast-row comment-textarea"><fieldset class="comment-form-comment"><div class="comment-form-textarea ast-col-lg-12"><label for="comment" class="screen-reader-text">' . esc_html( astra_default_strings( 'string-comment-label-message', false ) ) . '</label><textarea id="comment" name="comment" placeholder="' . esc_attr( astra_default_strings( 'string-comment-label-message', false ) ) . '" cols="5" rows="5" aria-required="true"></textarea></div></fieldset></div>';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment