Hey,
I want to keep comments but not show the numbers on the blogpost on the main pagehttp://www.elleagnes.se
What code shall I add?
Thanks
Charlotte
Hey Charlotte :)
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
span.comment-container.minor-meta, .text-sep-comment {
display: none;
}
Best regards,
Yigit
Hi Yigit :)
thanks but I don’t want to delete the comments just the numbers next to it.
The code deletes the comment text as well, not only the number next to it..
Charlotte
Hi,
Try to modify the following files:
enfold > includes > loop-author.php (line 127)
enfold > includes > loop-index.php (line 228)
enfold > includes > loop-search.php (line 50)
and find this code in each file:
comments_popup_link( "0 ".__('Comments','avia_framework'),
"1 ".__('Comment' ,'avia_framework'),
"% ".__('Comments','avia_framework'),'comments-link',
"".__('Comments Disabled','avia_framework'));
and replace it with
comments_popup_link( __('Comments','avia_framework'),
__('Comment' ,'avia_framework'),
__('Comments','avia_framework'),'comments-link',
"".__('Comments Disabled','avia_framework'));
Hope this helps :)
Best regards,
Nikko
Thanks but seriously there must be an easier way!
Can’t I just add a code in the Quick CSS that disables the numbers?
/Charlotte