• Resolved WP Developer

    (@uggsforu)


    Hello,

    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?

    • This topic was modified 6 years, 8 months ago by WP Developer.
    • This topic was modified 6 years, 8 months ago by WP Developer.
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 6 years, 8 months ago by Kash.
    Thread Starter WP Developer

    (@uggsforu)

    Thank you very much ??

    Plugin Author Happy Coders

    (@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.