Support » Plugin: Comments Like Dislike » How to remove 0 (zero)?

  • Resolved WP Developer



    I’d like to remove 0 (zero) if no comments. It’s really not needed there.

    Could you tell me which file and line should I edit?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I agree with you, I hope this is developed to be an option in the plugin.
    I tried to use hooks to alter this, but I did not find an easy way.
    Do this to plugin core files.
    In (comments-like-dislike/inc/views/frontend/like.php)
    Replace line 55 with this code:
    <span class="cld-like-count-wrap cld-count-wrap"><?php echo (empty( $like_count )) ? '' : number_format($like_count); ?></span>

    • This reply was modified 11 months, 2 weeks ago by  jdwel.

    Thank you very much 🙂

    Plugin Author Happy Coders


    Hello there,

    We have now removed 0 when there are no likes or dislikes. If required then it can be added from the hook though. Please update your copies and let us know if it still need any further adjustments.

    Regards WPHC

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to remove 0 (zero)?’ is closed to new replies.