Feb 07, 2022 4:01 pm
Hello, when installing the plugin it removes my default comment style. I want to keep the title of my comments.
Â
This is the code that I want to keep, is it possible to add it somewhere?
// You can start editing here -- including this comment!
if ( have_comments() ) : ?>
<h2 class="comments-title">
<?php
$comment_count = get_comments_number();
if ( 1 === $comment_count ) {
printf(
/* translators: 1: title. */
esc_html_e( 'One thought on “%1$s”', 'minimal-grid' ),
'<span>' . get_the_title() . '</span>'
);
} else {
printf( // WPCS: XSS OK.
/* translators: 1: comment count number, 2: title. */
esc_html( _nx( '%1$s thought on “%2$s”', '%1$s thoughts on “%2$s”', $comment_count, 'comments title', 'minimal-grid' ) ),
number_format_i18n( $comment_count ),
'<span>' . get_the_title() . '</span>'
);
}
?>
</h2><!-- .comments-title -->
Â
Â
Â
6 Replies
Feb 08, 2022 12:54 am
Also, what is the correct way to make the textarea for comments bigger?
Rith now I'm using this in custom CSS, but I think is not the correct way
#wpdcom .ql-container {min-height: 175px;} - this fix the issue for desktop view
#comments #wpdcom textarea{min-height: 175px;} - this fix the issue for mobile view
Â
Feb 09, 2022 3:08 am
"display leave a reply..." fix does not work for me.. maybe is too complicated.
Â
resizing the text area working until I click on it then it goes back to the "small" version
I see that "something" adds this element.style
style="overflow: hidden; min-height: 2em; height: 56px;"
toÂ
<textarea id="wc-textarea-0_0"....
This happens on both mobile and desktop versions when I click/tap on textarea.
Â
Any solution here? I just want to keep comment textarea size:
min-height: 175px;
Â


