• 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: https://www.ulrikalidbo.com/blogg/

    Best Regards
    Gustav

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

    (@esmi)

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

    Thread Starter Gurkah

    (@gurkah)

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

    esmi

    (@esmi)

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

    Thread Starter Gurkah

    (@gurkah)

    Yes it does

    esmi

    (@esmi)

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

    Thread Starter Gurkah

    (@gurkah)

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

    esmi

    (@esmi)

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

    Thread Starter Gurkah

    (@gurkah)

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

    esmi

    (@esmi)

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

    Thread Starter Gurkah

    (@gurkah)

    Then the comment box appears

    esmi

    (@esmi)

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

    Thread Starter Gurkah

    (@gurkah)

    the comment.php in my own theme?

    esmi

    (@esmi)

    Yes.

    Thread Starter 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)

    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.