Thanks, David. It worked perfectly.
There is one thing though: The above code doesn’t put brackets around the comment’s count. So I placed them myself.
I replaced this:
/* translators: 1: number of comments */
esc_html( _nx(
‘Reader Comments %1$s’,
‘Reader Comments %1$s’,
$comments_number,
‘comments title’,
‘generatepress’
) ),
With this:
/* translators: 1: number of comments */
esc_html( _nx(
‘Reader Comments (%1$s)’,
‘Reader Comments (%1$s)’,
$comments_number,
‘comments title’,
‘generatepress’
) ),
It works fine now. Did I do it right?