Support » Themes and Templates » Comment fields are gone

  • Gurkah

    (@gurkah)


    Hi!

    When I was setting up this website I must have managed to somehow delete something related to the comment fields. I’ve been looking all over but I can’t find anything.

    The problem is, simply put, that when you click on ‘Leave a comment’ You get sent to the post but there are no boxes or fields where you can write your comment.

    Please help me with this, I don’t know what else to do.

    here is the link to the blog: http://www.ulrikalidbo.com/blogg/

    Best Regards
    Gustav

Viewing 15 replies - 1 through 15 (of 20 total)
  • esmi

    (@esmi)

    Forum Moderator

    Does your custom theme include a comments.php template file? Are you calling it using comments_template(); in single.php?

    Gurkah

    (@gurkah)

    Yep that is correct: the file loop-single.php is calling it using <?php comments_template(); ?>

    esmi

    (@esmi)

    Forum Moderator

    Does comments.php include <?php comment_form(); ?>?

    Gurkah

    (@gurkah)

    Yes it does

    esmi

    (@esmi)

    Forum Moderator

    Are you using a custom callback function in comment_form()?

    Gurkah

    (@gurkah)

    Can you explain what that means. I’m not super confident in WordPress

    esmi

    (@esmi)

    Forum Moderator

    What exactly do you have in the <?php comment_form(); ?> line?

    Gurkah

    (@gurkah)

    nothing more on that line. Just <?php comment_form(); ?>

    esmi

    (@esmi)

    Forum Moderator

    What happens if you switch to the default Twenty Eleven theme?

    Gurkah

    (@gurkah)

    Then the comment box appears

    esmi

    (@esmi)

    Forum Moderator

    Try renaming your comment.php file to something like comment-old.php

    Gurkah

    (@gurkah)

    the comment.php in my own theme?

    esmi

    (@esmi)

    Forum Moderator

    Yes.

    Gurkah

    (@gurkah)

    It works now! thank you ver y much. The only thing that appears to be wrong that it says name on the email field, email on the website field etc. Where is that info located?

    esmi

    (@esmi)

    Forum Moderator

    The problem hasn’t been solved. All you’ve done so far is narrowed down the cause of the problem to your comments.php file. I suspect there’s an error in the file that is stopping it from working correctly (if at all). Rename the file back to comments.php and turn debug on and enable error logging to try and pinpoint the exact issue.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Comment fields are gone’ is closed to new replies.