Replies Count

A reply count indicates the number of replies that correspond to a particular conversation. Using the code snippets below, you can display a reply counter on Home or Category pages.

Top

Basic Counter

In the block below we place the code that is necessary to implement the reply counter. Of course, the Spot.IM embed code should be on the same page. Simply copy-and-paste this code to see immediate results.

<div
    class="spot-im-replies-count"
    data-post-id="POST_ID_GOES_HERE">
</div>
Top

Minimum Count

You can also add data-min-count to set a lower limit for returning a count number, as we show in the block below.

<div
    class="spot-im-replies-count"
    data-post-id="POST_ID_GOES_HERE"
    data-min-count="10">
</div>

NOTE: Adding this minimum count will also add one of the following classes: spot-im-above-min-count or spot-im-below-min-count , even if data-min-count attribute is not set.

Top

Custom Counter

You can customize the reply counter by adding the data-placeholder-class attribute, which specifies a target class selector in which the reply count will display.

<div
    class="spot-im-replies-count"
    data-post-id="POST_ID_GOES_HERE"
    data-min-count="10"
    data-placeholder-class="target">
    <div class="container">
        Counter: <span class="target"></span>
    </div>
</div>