Reputation: 171
I'm creating a website by using Wordpress CMS (wordpress.org). My question is how to hide or remove number of comments text above the comments elements. See below image.
Any help would be much appreciated.
Upvotes: 0
Views: 2231
Reputation: 5824
You can hide number of comments text by css like.
.comments-area .comments-title{
display: none;
}
Or you can remove code from comment.php
file.
<h2 class="comments-title">
<?php
printf( _nx( 'One thought on “%2$s”', '%1$s thoughts on “%2$s”', get_comments_number(), 'comments title', 'twentyfifteen' ),
number_format_i18n( get_comments_number() ), get_the_title() );
?>
</h2>
Find the line something like it depends on your theme developer which tag his used. try to find out h1
,h2
,h3
,h4
,h5
,h6
and remove it.
if you can't find any line with this tag. please put your comment.php
file code so i can give a exact solution.
Thanks
Upvotes: 3