• Resolved TKList

    (@tklist)


    Clicking on the comment count does nothing. It should link to comment section, should it not?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,
    can you share a link where there’s this not working comment bubble?

    Thread Starter TKList

    (@tklist)

    The comment bubble is not even coming up.
    And in the theme settings all items are checked in the comment section.

    https://tklist.net/2015/05/18/60-minutes-cbs-news-child-suicide-bombers-a-monumental-project-falling-apart/

    Fine,
    the thing is simple, that link points to an element with id #tc-comment-title.
    You’re using some plugin which replaces the standard wordpress comment-list. So that element isn’t added. And this plugin doesn’t have any other anchor which you can replace the above with.

    Thread Starter TKList

    (@tklist)

    So what is the solution?

    As I told you, the plugin you’re using doesn’t provide you an anchor. So you cannot tell that link to go to an anchor.
    So you can code some javascript to go to an element (even if isn’t an anchor) when you click somewhere (say on that link). Or you can use customizr filters (or javascript too) to completely remove the “href” attribute of that link.

    Thread Starter TKList

    (@tklist)

    #disqus_thread is the anchor. Is there an easy way to change it?

    well disqus_thread is the anchor of the whole section, it starts where you see “AROUND THE WEB”
    But if you’re happy with it ??
    ..
    add this to your child-theme functions.php:

    add_filter('tc_the_title', 'replace_comment_bubble_link', 100);
    function replace_comment_bubble_link( $_html){
      return str_replace('#tc-comment-title', '#disqus_thread', $_html);
    }

    Thread Starter TKList

    (@tklist)

    Thanks, that worked.

    Thread Starter TKList

    (@tklist)

    Now new problem. The bubble is getting replaced with the word comment and the count.

    I’m having the same problem as TKList.

    For example, With two comments, the bubble is replaced with the words “2 Comments.” And because it’s part of the H1, it’s HUGE! ??

    Another issue with this approach: it doesn’t address the bubble link on the blog’s home page. That still links to [post URL]#tc-comment-title.

    Bump

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Comment Count’ is closed to new replies.