The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Add comments title ...
 
Share:
Notifications
Clear all

Add comments title from my default theme

7 Posts
2 Users
0 Reactions
1,116 Views
Posts: 4
Topic starter
(@novafile)
New Member
Joined: 2 years ago

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 &ldquo;%1$s&rdquo;', '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 &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', $comment_count, 'comments title', 'minimal-grid' ) ),

					number_format_i18n( $comment_count ),

					'<span>' . get_the_title() . '</span>'

				);

			}

			?>

		</h2><!-- .comments-title -->

 

 

 

6 Replies
Posts: 4
Topic starter
(@novafile)
New Member
Joined: 2 years ago

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

 

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7315

@novafile,

I want to keep the title of my comments.

Please use the solution provided here: 

https://wpdiscuz.com/community/f-a-q/display-leave-a-reply-comment-header/

Rith now I'm using this in custom CSS, but I think is not the correct way

Everything is ok here. You should configure it using a CSS code. 

Reply
Posts: 4
Topic starter
(@novafile)
New Member
Joined: 2 years ago

"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;

 

Reply
3 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7315

@novafile,

"display leave a reply..." fix does not work for me.. maybe is too complicated.

Please record a video where we can see how you're adding the code. 

Any solution here? I just want to keep comment textarea size:

Please provide an example URL we'll help you to provide a solution. 

Reply
(@novafile)
Joined: 2 years ago

New Member
Posts: 4

@asti 

This is what happens when clicking on textarea. This is on the desktop version, but its the same on mobile

textarea

 

Link: https://url.dev/m/jGNuHHK/

Reply
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7315

@novafile,

Use the CSS solution below:

#wpdcom.wpd-layout-2 .wpd-form .wpdiscuz-textarea-wrap textarea{
      height: 55px !important;
      min-height:  55px  !important;
}

 

The red marked value can be changed as you like.

Reply
Share: