Forums

Comment-reply.js not loading on Single posts (7 posts)

  1. brevityness
    Member
    Posted 3 years ago #

    I noticed that whenever I clicked on reply to a comment, the page reloads before I can write my comment. On other blogs, I noticed that clicking on reply instantly spits out a reply box beneath the comment, without a page reload. For some reason, the comment-reply.js file is not loading on my posts the first time. I can't figure this out. Please help! Here's the link to me site: LonePlacebo

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Try editing your theme's header.php file and looking for:

    <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
    <?php wp_head(); ?>
    </head>
  3. brevityness
    Member
    Posted 3 years ago #

    Doesn't seem to work... Though I see this being loaded with the single-post view before clicking on reply:
    <script type='text/javascript' src='http://loneplacebo.com/wp-includes/js/comment-reply.js?ver=20090102'></script>

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems?

  5. brevityness
    Member
    Posted 3 years ago #

    Couldn't narrow down the problem when I deactivated my plugins one by one. Switching to default theme resolved the issue though.

  6. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Sounds like something is creating a conflict in your theme.

  7. Chase Adams
    Member
    Posted 2 years ago #

    Here's what I think:

    If you have any idea how to adjust your comments file:

    your commentlist should be an ol not a ul.

    Next the li should be this id="li-comment-whateverthenumberis" the important part is the li- in front of comment-

    The div needs to be "comment-whateverthenumberis", so remove the "div-"

    Let me know if that works!

Topic Closed

This topic has been closed to new replies.

About this Topic