WordPress.org

Ready to get started?Download WordPress

Forums

Moving comment form to top of page (4 posts)

  1. kpemberton
    Member
    Posted 5 years ago #

    I have been browsing the files to figure out how to move the form from the bottom of the post to the top of the post.

    For many of my users, it is not intuitive to have the comment form at the bottom of the page after they have clicked on the << be first to comment>> Link. Although the link works the page they come to has the same post as if it just reloads the same page. Many friends that have checked the site for me have asked how to comment because the could not find the form not thinking to scroll down to the bottom of the page.

    Modular code is best, but leaves something to be desired for those unfamiliar with naming convention, or what does what, just to many files to look in, and I am getting lost. I don't know if I need to look in the style folder or the many system folders. I don't know if the comments.php is called from a template of if I am just failing to understand the calls.

    What template/file defines the page used to make comments?
    What call or function do I need to move under the form to get the post under the form.

    Is there a file on the wordpress docs that tell me what each file does? or does one just have to poke around until they find a line of code that turns on the light.

    I am using the simple-la-bob-10 template on my site, in case this is where the problem lies.

  2. moshu
    Member
    Posted 5 years ago #

    Stepping_Into_Templates
    Template_Hierarchy

    Edit. It is your theme - not WP. In every normal theme when clickin on a link like "Be first to comment" or "Leave a reply", it should take you EXACTLY to the comment form. Your theme is faulty in this regard.

  3. kpemberton
    Member
    Posted 5 years ago #

    Thank you moshu, I am looking into it.

  4. moshu
    Member
    Posted 5 years ago #

    Look at the URL when you click on the "comment link"
    example.com/post-title/#respond

    which means you need a "name" into the comments.php just before the comments form:
    <a name="respond"></a>
    so that the link 'jumps' there.

Topic Closed

This topic has been closed to new replies.

About this Topic