Title: comment template problem
Last modified: August 19, 2016

---

# comment template problem

 *  [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/)
 * I have the following problem:
    In general I let people react to any post on the
   site and all works fine. But with some posts I want to disable the comment option.
   Problem is that whenever I uncheck the comment option and save the post, the 
   sidebar drops below the post.
 * I’ve counted all the div’s and /div’s and that’s not the problem. Anyone have
   any idea what could cause this?
    OR Can anyone tell me how to NOT load the comments
   template in some categories?

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/comment-template-problem-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comment-template-problem-2/page/2/?output_format=md)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213447)
 * > Anyone have any idea what could cause this?
 * A link to a page demonstrating the problem would help. It’s probably a CSS or
   markup issue.
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213453)
 * Ok, the following is a post with comments enabled (and therefor no problems):
   
   [http://www.denhelderactueel.nl/14/09/2009/zeestad-minder-succesvol-dan-gehoopt/](http://www.denhelderactueel.nl/14/09/2009/zeestad-minder-succesvol-dan-gehoopt/)
 * The following is a post with comments disabled:
    [http://www.denhelderactueel.nl/29/06/2008/de-boer-wint-ledentoernooi/](http://www.denhelderactueel.nl/29/06/2008/de-boer-wint-ledentoernooi/)
 * Hope you can help.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213481)
 * You’re missing the closing `</div>` for `#contentleft` when comments **aren’t**
   enabled – which means that your right sidebar is being rendered **inside** your#
   contentleft instead of to the right of it.
 * You need to take a closer look at single.php.
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213490)
 * the single.php shows exactly 20 times <div> and 20 times </div>
    should I post
   the code here?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213496)
 * Use the [WordPress pastebin](http://wordpress.pastebin.ca/) and then post the
   pastebin url here.
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213501)
 * Here it is:
    [http://wordpress.pastebin.ca/1567553](http://wordpress.pastebin.ca/1567553)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213505)
 * Have you looked at comments.php? Do the opening and closing divs match in that
   file? I think the comments.php is supplying the closing `</div>` for #contentleft.
   So no comments – no closing `</div>`
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213566)
 * Looked at comments, exactlty 18 times <div> and 18 times </div>
    see: [http://wordpress.pastebin.ca/1567993](http://wordpress.pastebin.ca/1567993)
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213593)
 * anyone have any idea?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213594)
 * Well then leaves the header, footer and sidebar files as possible culprits..
 * Create an empty php document, paste the code in from the header, followed by 
   the code from the footer, now look at the elements…
 * Those 2 files together should form a layout of complete elements, what would 
   usually be sat between them makes no difference..
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213605)
 * Well, when I do that (take the code of header and footer and copy/paste it in
   a new file) I come to 13 times <div> and 13 times </div>.
 * See: [http://wordpress.pastebin.ca/1568534](http://wordpress.pastebin.ca/1568534)
 * so, what else could be wrong?
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213606)
 * Then it’ll be whatever sits between those… (i think)..
 * page.php if it’s a page
    single.php if it’s a single post
 * etc..
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213607)
 * we started out with looking at the single.php and with page.php it’s not a problem,
   cause that file doens’t call the comments template.
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213610)
 * Do you have a custom callback for comments in your functions file?
 *  Thread Starter [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * (@ronaldb73)
 * [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/#post-1213611)
 * what is a callback? where do I look for?

Viewing 15 replies - 1 through 15 (of 23 total)

1 [2](https://wordpress.org/support/topic/comment-template-problem-2/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/comment-template-problem-2/page/2/?output_format=md)

The topic ‘comment template problem’ is closed to new replies.

## Tags

 * [comment](https://wordpress.org/support/topic-tag/comment/)
 * [option](https://wordpress.org/support/topic-tag/option/)
 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 23 replies
 * 3 participants
 * Last reply from: [ronaldb73](https://wordpress.org/support/users/ronaldb73/)
 * Last activity: [16 years, 8 months ago](https://wordpress.org/support/topic/comment-template-problem-2/page/2/#post-1213632)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
