Skip to content

Instantly share code, notes, and snippets.

@arrblair
Created August 16, 2013 06:46
Show Gist options
  • Save arrblair/6247796 to your computer and use it in GitHub Desktop.
Save arrblair/6247796 to your computer and use it in GitHub Desktop.
CS-438: fix I pulled from an old jira ticket of mine for grabbing the working comment count from the top of the commenting widget and replacing the non-functioning value of a comment count built into their WordPress theme that was at top of their blog post.
var commentCountGrabber = function () {
var commentCountDiv = document.getElementsByClassName('fyre-comment-count')[0];
var textContent = commentCountDiv.textContent;
jQuery('.meta_comments > a').html(textContent);
};
setInterval(commentCountGrabber, 40000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment