• Hi,
    I’ve enabled Disqus comments on my blog. On the front blog page and individual post pages, I have changed the layout a bit so the comments no longer appear overlaid on the Featured Image, but now shows within the byline area.

    Prior to switching to Disqus comments, the byline simply showed a number representing the number of comments on the post. After installing Disqus, it now shows the number with the word Comment(s) next to it (0 Comments, 1 Comment, 2 Comments, etc). I was noticing the other day that on my actual Post pages, it still only shows a number. This number updates accordingly when a new comment is made, but it does not include the word Comment(s).

    I know how to edit what is show through the Disqus website, but that’s not the problem here. I can’t figure out how to display the word “Comment” on the Post page, the same way it already does on my main page. Any ideas? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You could try using the CSS “::after” pseudo element:
    https://css-tricks.com/almanac/selectors/a/after-and-before/

    Thread Starter AZBros

    (@azbros)

    I think the issue here is something with the Disqus code or how it’s being implemented within the site. I’ll continue researching to see what I can find.

    Once I installed Disqus on my site, the rest of the comment links were updated automatically to display the Disqus style comment count. I just can’t figure out why the comment count area on my Posts only show numbers and not the full Disqus comment link (with the word Comment). I even changed the default value for 0 comments to “Leave a Comment”. On my main page, any post with 0 comments displays “Leave a Comment”. On my Post pages, however, it still displays just a 0. Not sure why this would be happening.

    Hi AZBros,
    Have a look at Heateor- Social Comments plugin.
    Involves fb,google+, wp and disqus comments in one tabbed/stacked format.Free configuration.
    Works smoothly with Hueman.

    @AZBrow – Maybe it has something to do with the way the comment count HTML is structured. Here’s the comment count code from content.php which is used on the home and archive pages:

    <?php if ( comments_open() && ( hu_is_checked( 'comment-count' ) ) ): ?>
        <a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a>
    <?php endif; ?>

    And here’s the code used in page-title.php which is called by single.php. Notice the count is within a list element and the class is on that list element instead of the anchor tag:

    <?php if ( comments_open() && ( hu_is_checked( 'comment-count' ) ) ): ?>
        <li class="comments"><a href="<?php comments_link(); ?>"><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></a></li>
    <?php endif; ?>

    You could check on the Disqus support forum to see if anyone there might know if that code makes any difference.

    Thread Starter AZBros

    (@azbros)

    I’m using a slightly different comment format for my site, so they’re actually both set up the same. I can’t figure out why one would display the Disqus comment count format and the other would show numbers only. I asked on the Disqus forums to see what they have to say about it. If I figure anything out, I’ll post back here.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disqus Comment Count Display Format on Posts’ is closed to new replies.