I’ve been following this tutorial and I can’t manage to get my Reply working as intended with the wp_enqueue_script( 'comment-reply' );
php function.
- functions.php PasteBin
- header.php PasteBin
- single.php PasteBin
- comments.php PasteBin
- footer:
</body>
</html>
<!-- Footer Sections -->
I’ve removed code which I think is irrelevant for what I wish to accomplish.
Expected Output (Taken from Twenty Eleven 1.3 Minus stylesheets)
(source: iforce.co.nz)
Actual Output (Taken from my theme Minus stylesheets)
(source: iforce.co.nz)
How can I accomplish the Expected Output based off this tutorial for Advanced Comments? and what should I be doing with my functions.php and single.php to accomplish it?
The solution is actually pretty simple… after a little of reading the wordpress code for the javascript. I found the problem was in how each comment block was created.
based off this function in function.php
I found the error was with
By simply removing the “li-” in the id so it forms id=”comment-“
The reply form now moves on reply.