Skip to content

Instantly share code, notes, and snippets.

@assoscoupa
Forked from premanshup/functions.php
Created April 17, 2021 07:52
Show Gist options
  • Save assoscoupa/603898fe377ab0d23abdc63fb3193ec5 to your computer and use it in GitHub Desktop.
Save assoscoupa/603898fe377ab0d23abdc63fb3193ec5 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