Is there a way to edit the output of a specific file/line of code that will remove the comment form div from the comments div? Currently, I cannot separate the two to place them next to each other, rather than stacked on one another. It doesn't really work with the theme I'm editing, but cannot find a way to remove it.

Here as a really basic example is how the code looks now:

<div id="comments">
    (comments go here)
<div id="comment-form">
    (comment form goes here)

But what I need is this:

<div id="comments">
    <div id="comment-display">
        (comments go here)</div>
    <div id="comment-form">
        (comment form goes here)</div>

Thanks ahead of time!

  • 1
    have you tried editing the comments.tpl.php file if Drupal 7 or comments.html.twig file if on Drupal 8?
    – No Sssweat
    Commented Jun 7, 2016 at 4:42
  • 1
    Seriously, you are a lifesaver. I know I probably should have looked there, but thank you anyways!
    – Matthew
    Commented Jun 7, 2016 at 4:55

1 Answer 1


Answered in comments of question, edit the html within the comments.tpl.php file of the theme's templates folder.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.