Monday, October 14, 2013

Form before comments

On many WordPress blogs, there is too often the form used to post a comment, after all the comments already posted!
For just that your article is very well commented, it forces the player to scroll to the bottom of the comment thread, to post his.
Why not put the comment form right after your article?


Form before comments

Procedure To Follow
  • Using your favorite FTP (FileZilla for example), first back up your comments.php file located in the directory /wp-content/themes/name-your-theme/
  • Back in the WordPress Admin and via the Left Appearance/Editor menu, select the file comments.php
  • If your theme supports it, replace the top of the file <?php with the following code: <?php comment_form ();
  • Save and exit, refresh and verify that the form is displayed
At this point, you will have 2 feedback forms, while a top and one at the bottom! Logic, you have added, without deleting the original.
  • Return to the editor, open comments.php
  • Look at the bottom of your file, the function <?php comment_form ();>
  • Delete, save and update
It's over; your comment form is now placed before all comments.

Caution, however, some issues (including premium) make changes, for example, my theme, the call function is <?php comment_form_title
You will notice that even though the name is different, the structure remains almost the same. Also try to identify in your comments.php the "comment_form" function (use "Ctrl + F" to search in chrome).


See more wordpress tutorial

Share it Please

0 comments:

Post a Comment

Copyright @ 2013 Johnny Gagnon blog. Designed by Templateism | Love for The Globe Press