Adding Comment in your theme
WordPress makes it easy by having a standard commenting system design that comes with every copy of WordPress, and it can be used by any theme.
Open up index.php and put the following line (Here in each page the comment box will display) . For each post add the following code in your single.php file.
<?php comments_template(); // Get wp-comments.php template ?>
To fix this we do not want to go and edit the core of WordPress but simply add a line of CSS, and make it somewhat easier to read in the process. So add the following to the bottom of your stylesheet.
textarea#comment { width: 400px; padding: 5px; } .commentmetadata { font-size: 10px; }
With the release of WordPress 3.0 has meant the standardizing of comments forms throughout all WordPress themes making it easier for theme authors to and plugin developers since the comments form can be modified via hooks.
That means you can create your own comments form or customize comments form in your theme design.
&amp;lt;?php if($comments) : ?&amp;gt; &amp;lt;ol&amp;gt; &amp;lt;?php foreach($comments as $comment) : ?&amp;gt; &amp;lt;li id="comment-&amp;lt;?php comment_ID(); ?&amp;gt;"&amp;gt; &amp;lt;?php if ($comment-&amp;gt;comment_approved == '0') : ?&amp;gt; &amp;lt;p&amp;gt;Your comment is awaiting approval&amp;lt;/p&amp;gt; &amp;lt;?php endif; ?&amp;gt; &amp;lt;?php comment_text(); ?&amp;gt; &amp;lt;cite&amp;gt;&amp;lt;?php comment_type(); ?&amp;gt; by &amp;lt;?php comment_author_link(); ?&amp;gt; on &amp;lt;?php comment_date(); ?&amp;gt; at &amp;lt;?php comment_time(); ?&amp;gt;&amp;lt;/cite&amp;gt; &amp;lt;/li&amp;gt; &amp;lt;?php endforeach; ?&amp;gt; &amp;lt;/ol&amp;gt; &amp;lt;?php else : ?&amp;gt; &amp;lt;p&amp;gt;No comments yet&amp;lt;/p&amp;gt; &amp;lt;?php endif; ?&amp;gt;