WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How To Move 'Comment' link to bottom of post (10 posts)

  1. zuluboy005
    Member
    Posted 5 years ago #

    Hi. I'm using WP version 2.8.1 and I have dfblog as my theme.
    How do I move the 'Comments' link to the bottom of each post?
    OR, how can I ADD a 'leave a comment' link to the bottom of every post?

    thanks!

  2. S.K
    Member
    Posted 5 years ago #

    //how can I ADD a 'leave a comment' link to the bottom of every post?//

    Is it not available in the theme?

    You can use this wherever you want it to appear:

    <?php comments_template(); ?>

    S.K

  3. zuluboy005
    Member
    Posted 5 years ago #

    sorry. I'm new to all this. so I went back to my blog and went to the HTML view of my recent post and scrolled to the bottom and pasted it in, but nothing has changed?

  4. S.K
    Member
    Posted 5 years ago #

    No. That is not the way. I think you may need a detailed howto.
    I'll try to have a look into the theme and come back.
    What is the URL (web address) of your blog?

    S.K

  5. S.K
    Member
    Posted 5 years ago #

    I checked up the theme. You have the comment box at the end of posts in single page. what exactly is your requirement?

    S.K

  6. Zulfikar Nore
    Member
    Posted 5 years ago #

    Go to your index.php and locate this line

    <?php df_get_postmetadata( array( "date", "author", "comment" ), 'span' ); ?>

    Delete the part that reads "comment" leaving it like this

    <?php df_get_postmetadata( array( "date", "author", ), 'span' ); ?>

    Now scrol down and locate the line that reads

    <?php df_get_postmetadata( array( "category", "tag", "edit", ), 'span' ); ?>

    Add "comment" after the "edit" tag thus

    <?php df_get_postmetadata( array( "category", "tag", "edit", "comment" ), 'span' ); ?>

  7. Zulfikar Nore
    Member
    Posted 5 years ago #

    P.S: You will need to the same for the single.php for uniformity.

  8. S.K
    Member
    Posted 5 years ago #

    You may remove the comma after the "author" in this row:

    <?php df_get_postmetadata( array( "date", "author", ), 'span' ); ?>

    S.K

  9. zuluboy005
    Member
    Posted 5 years ago #

    Thanks guys!

  10. Jyn
    Member
    Posted 4 years ago #

    Is there possibly a plugin that does this for us?

Topic Closed

This topic has been closed to new replies.

About this Topic