-
AuthorPosts
-
February 7, 2017 at 9:21 pm #744092
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
February 13, 2017 at 7:41 am #746170Hey 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,
IsmaelFebruary 13, 2017 at 10:42 pm #746658Is there a way to suppress the number and the ATTENDEE COMMENTS label if there are no comments *( rather than 0)
Thanks!
February 15, 2017 at 6:06 am #747272Hey!
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,
IsmaelFebruary 16, 2017 at 11:17 pm #748167So 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!February 17, 2017 at 8:40 am #748267Hi!
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,
IsmaelFebruary 17, 2017 at 3:52 pm #748509How do i copy the file to the child folder?
February 18, 2017 at 11:06 am #748810Hey!
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 -
AuthorPosts
- You must be logged in to reply to this topic.
