WordPress.org

Forums

There are no comments yet, why not be the first (2 posts)

  1. miketosetto
    Member
    Posted 3 years ago #

    Hi

    I'm just getting my very simple blog up and running with the Twenty Ten theme as my basis.

    Once I have a comment on a post, it reads 'One Response to post name' just above Leave a comment

    Once there are 2 comments, it reads 'Two Responses to post name' just above Leave a comment

    I currently have one post on my new blog and have deleted all comments... as you can see it is blank above Leave a comment.

    http://miketosetto.com/blog/hello-world/

    I'm hoping someone can help me make it read something like, 'There are no comments yet, why not be the first', rather than it be blank.

    Hope this all makes sense.

    Cheers

    Mike

  2. i_g_wright
    Member
    Posted 3 years ago #

    Hi,

    In the twentyten theme folder wp-content/themes/twentyten you should have the file comments.php. You can add the line you want into there.

    On lines 65 - 69 you should see:

    <?php else : // or, if we don't have comments: 
    
    /* If there are no comments and comments are closed,
    * let's leave a little note, shall we?
    */

    You can add your default message to here:

    <?php else : // or, if we don't have comments: ?>
    
    <h3 id="comments-title"><?php _e('There are no comments yet, why not be the first', 'twentyten'); ?></h3>
    
    <?php
    /* If there are no comments and comments are closed,
    * let's leave a little note, shall we?
    */

    Try replacing the code & see if that's what you want.

    Please note:
    Backup your files before making changes incase it's not what you want.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.