Wordpress: how to write a reply to comment using jQuery
Friday October 3, 2008Recently Cristiano Fino issued a profit Plugin for Wordpress can add two links to every comment by a post (perhaps you have installed a similar, given that the directory Wordpress.org I have a couple astray, but as an Italian software would be the event to honor the excellent work done by Cristiano). These Link (reply & shares), meet and / or quote the author of a commentary by running the boring operation to insert the character at (@) to indicate to whom it is addressed. In this tutorial I will explain - in the medium-expert users - how to add these two features "on hand", without any all'istallazione Plugin. Also exploit the capabilities of jQuery to the party in Javascript. The technique is exhibiting the same I used to introduce this feature in this blog.
Note: The use of a plug is the best solution for those who often tend to change their Wordpress template or at least, has in anticipation of doing so. This tutorial will only show how to perform targeted in the code Wordpress and is dedicated to the most curious.
Changing the file comments.php
The first change to make is to enter the link "reply" and "units" within each comment. To do this, edit the file comments.php located in the folder of our theme. This file contains all the instructions that allow you to view the comments at the end of a post. The section that interests us (which may vary slightly from issue to issue) is the loop creation of the various comments, recognizable by:





















