Hello
At the bottom of a single post with comments, I would like to replace the Circle with the number of comments in the middle and the line and the word REPLY wih a left justified “Attendee Feedback and the same line under it.
Thanks in advance for your help.
Dave
Hey candeos!
Thank you for using Enfold.
Looks like you managed to add the text “ATTENDEE COMMENTS”. What do you want to do with the comment count?
Best regards,
Ismael
Is there a way to suppress the number and the ATTENDEE COMMENTS label if there are no comments *( rather than 0)
Thanks!
Hey!
Yes, it’s possible. Please edit the comments.php file, look for this code around line 57:
<span class='comment-count'><?php echo $ccount; ?></span>
.. replace it with:
<?php if($ccount != 0) echo "<span class='comment-count'>$ccount</span>"; ?>
Best regards,
Ismael
So i made the change the circle went away but the \line and the word ATTENDEE COMMENTS still appeared Is there another line I need to change?
Also, will I have to change this everytime I do a theme update?
Thanks!
Hi!
You can copy the comments.php file in the child theme folder. Please revert the file back to default then look for these lines:
<span class='comment-count'><?php echo $ccount; ?></span>
<span class='comment-text'><?php echo $rep; ?></span>
.. replace it with:
<?php
if($ccount != 0) {
echo "<span class='comment-count'>$ccount</span>";
echo "<span class='comment-text'>$rep;</span>";
}
?>
Regards,
Ismael
How do i copy the file to the child folder?
Hey!
Do you have a child theme already? You can duplicate the file via FTP. If you’re not familiar with this, please ask your hosting provider or post the FTP login details in the private field. We will create a duplicate of the comments.php file in your child theme folder.
Regards,
Ismael