Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    The Reply button is added and controlled by your theme, so you should be able to fix the issue by making changes to your theme’s comments.php file.

    Twenty Eleven is a good example, so you can have a look at the comment functions in that theme to see how it should be implemented.

    Thread Starter TheGremlyn

    (@thegremlyn)

    The comments section in my theme is based on and still very similar to TwentyEleven’s. A few stylistic changes are really all that exist. The issue seems to be in the Javascript, with whatever is supposed to define addComment. Maybe there is an element missing I’m unaware of, but from what I can see I have all the elements that TwentyEleven does.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    When looking at your site, I see a Javascript error when loading the page, before to hit the Reply button:
    Uncaught TypeError: undefined is not a function in bootstrap.min.js

    It might be worth trying to fix this issue with your theme first; that might be what’s causing the issue with other Javascript elements like comments.

    Thread Starter TheGremlyn

    (@thegremlyn)

    Hrm, that wasn’t showing up in FireBug for me, but does in Chrome. Seems to stem from jQuery being called after Boostrap. That error no longer exists, but my issue, unfortunately, still does.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I had another look at your site, and I couldn’t find any reference to comment-reply.js in your code.

    Could you check that it’s correctly enqueued in your theme, and that Threaded Comments are enabled in your Discussion Settings?

    Thread Starter TheGremlyn

    (@thegremlyn)

    Ah-hah! I had wrongly assumed that it would be added for me simply by enabling threaded replies on the site, but no apparently there needs to be a little snippet to include comment-reply.js before calling wp_head(). Seems to be working now, thanks for your patience!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘addComment is not defined’ is closed to new replies.