Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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

    #746170

    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

    #746658

    Is there a way to suppress the number and the ATTENDEE COMMENTS label if there are no comments *( rather than 0)

    Thanks!

    #747272

    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

    #748167

    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!

    #748267

    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

    #748509

    How do i copy the file to the child folder?

    #748810

    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

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.