Fixing Blogger Comments Reply Button Scroll to Top Bug

Feb 2, 2014 / Share
For almost a week now, clicking the Reply button on Blogger's comments sends the page to the top. This bug discouraged my readers from typing in their comments.

Fixing Blogger Comments Reply Button Scroll to Top Bug

Thankfully, I managed to find a quick fix for this problem. Just two lines of code that prevents the page from scrolling to the top when you click that Reply button.

Here's how to fix it:

In your blog template, search for this code:

replyParent = commentId;

Then, right after that line, paste this code:

var x = document.getElementById(commentId);
x.scrollIntoView();

Save your template and the problem should be fixed now.
  1. A man can get discouraged many times but he is not a failure until he begins to blame somebody else and stops trying. See the link below for more info.


    #discouraged
    www.ufgop.org

    ReplyDelete