Comment area title

Hi guys,

I’m failing when i try to change the comments area title. now it is showing something like this:

1 thougt on ‘Post or page title’

I jsut want to say ‘1 thought’ or ‘34 thoughts’ without the post title. because it is looking ugly when the title gets very long which is the case in my website. here an example:

I have to change these codelines:

<h2 class="comments-title">
<?php
printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'sparkling' ), number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
?>
</h2>

can you please support me in this topic.

That’s by far the longest title I have ever seen. :slight_smile:

You can edit that part of code like this:

<h2 class="comments-title">
	<?php
		printf( _nx( 'One thought', '%1$s thoughts', get_comments_number(), 'comments title', 'dazzling' ),
			number_format_i18n( get_comments_number() ) );
	?>
</h2>

Now you will get values like these:

  • One thought
  • “Number” thoughts

Nothing else will show up.

Let me know if this helps.

thank you, works for me. I just changed the strings to german : thought/s -> Kommentar/e

What i don’t really get is why it was working fine for me before with the german wording? was it a wordpress locale feature?

thanks a lot again
yasin