Step by Step Easily Customize WordPress Blog Comment Form | Custom Comment Form WordPress

Allow the visitor to your blog to start or join a discussion on the subject matter in every post and page is a great way to interact with your audience getting feedback for continuation, development and Enhance the work being done. WordPress provides a powerful system for handling comments received through its structure and a number of features that make it possible to customize the display of the same.
Initially you need to enable the submission of comments and provide the form responsible for its funding to visitors.
Step by Step Easily Customize WordPress Blog Comment Form | Custom Comment Form WordPress

VIEWING COMMENTS

Accessing the page ‘Settings’> ‘Discussion’ administrative panel are available mailing options that will be responsible for formatting the input and output of comments on your blog. ‘Tab standards Settings posts’ select the option that allows you to send comments to new posts. This option can be changed individually for each post or page in the edit screen of the same, making it active or not public participation for that topic.
If you are using a theme itself, it may be that both form as comments display is not in accordance with the standards established by WordPress or, in a worrying assumption that the subject does not offer support feature. In such cases it is possible to include support to form inclusion and display of comments by function:
1
<? Php comments_template (); ?>
By default the function will insert instructions comments.php file, if that does not exist the system will automatically generate the form and list of comments obtained.
 
FORMAT OF RESULTS TO BE DISPLAYED
In addition to allowing the submission of comments on the content in question, WordPress supports sending responses to comments already posted with new comments. To enable this option you can go to the options and also configuration page and check the ‘Enable [] comments levels grouped by conversation (nested)’, informing the respective selection field the amount of responses each comment may receive.
If you have chosen to work in this way with the feedback response, be sure to format the display of the results correctly, with answers directly below the related commentary and preferably with a larger decline; thus symbolizing their degree of hierarchy. Check this formatting in comments here WordPress School.
dynamic response
Enhance the ability to send response to the comment formatting real-time positioning and other style settings for the comments submission form. First , make sure that you are using jQuery in your theme :
1
<? Php wp_enqueue_script ( ‘ jquery ‘ ); ? >
The location for the call of this function is in the header or footer file, varying with the technique you adopted to insert your scripts. Soon after, through the same file, enter the pages that receive the contact form the script responsible for performing this dynamic formatting ; stating the following instructions:
1
two
3
4
< ? Php
if ( get_Option ( ‘ thread_comments ‘)) {
     wp_enqueue_script ( ‘ comment- reply ‘);
}?>
PAGING THE RESULTS
WordPress allows you to easily perform pagination of comments as allows posts and pages. In the discussion of options tick ‘Divide comments on pages with [] highest level comments per page’ informing the respective field the desired amount of comments to display per page. Note that comments are higher level, ie, regardless of their level of depth the answers are not counted for this format.
In the same option you can set the chronological order of the display of the results and which will be presented in the first or last position.
Entering pagination
Just as the use of codes not provided by WordPress to work with comments can limit the use of resources available for such content, it is possible that even with the choice of paging comments are not divided into pages or the navigation links they are not displayed.
Therefore limiting the amount of comments and correct display of items of each page can be solved by:
<?php
$args = array(
     ‘page’ = 1,
     ‘per_page’ = ”
);
wp_list_comments( $args );
?>
Where they will be informed the current page and the number of comments per page respectively as a function of the parameters responsible for the listing of results. In the case of navigation links between pages of comments , you can manually add them as follows:
<?php
// Prixma Page
next_comments_link();
// page anterior
previous_comments_link();
?>
Passing any text as a parameter for each of these functions you customize the anchor text of its link.

LEAVE A REPLY

Please enter your comment!
Please enter your name here